aboutsummaryrefslogtreecommitdiff
path: root/src/slated-org-fix/slated.js
blob: 4e9f11a06fff76d6a10358c5ffa50106b3bc1db6 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
 * SPDX-License-Identifier: CC0-1.0
 *
 * On slated.org, automatically dismiss the warning saying you need
 * JavaScript and unhide the document body.
 *
 * Copyright (C) 2022 Wojtek Kosior <koszko@koszko.org>
 *
 * Available under the terms of Creative Commons Zero v1.0 Universal.
 */

/* Use with: https://slated.org/*** */

for (const bad_elem_id of [
    "seckit-noscript-tag",
    "seckit-clickjacking-no-body"
]) {
    const bad_elem = document.getElementById(bad_elem_id);
    if (bad_elem !== null)
	bad_elem.remove();
}