1
|
/**
|
2
|
* SPDX-License-Identifier: CC0-1.0
|
3
|
*
|
4
|
* On slated.org, automatically dismiss the warning saying you need
|
5
|
* JavaScript and unhide the document body.
|
6
|
*
|
7
|
* Copyright (C) 2022 Wojtek Kosior <koszko@koszko.org>
|
8
|
*
|
9
|
* Available under the terms of Creative Commons Zero v1.0 Universal.
|
10
|
*/
|
11
|
|
12
|
/* Use with: https://slated.org/*** */
|
13
|
|
14
|
for (const bad_elem_id of [
|
15
|
"seckit-noscript-tag",
|
16
|
"seckit-clickjacking-no-body"
|
17
|
]) {
|
18
|
const bad_elem = document.getElementById(bad_elem_id);
|
19
|
if (bad_elem !== null)
|
20
|
bad_elem.remove();
|
21
|
}
|