aboutsummaryrefslogtreecommitdiff
path: root/src/slated-org-fix/slated.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/slated-org-fix/slated.js')
-rw-r--r--src/slated-org-fix/slated.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/slated-org-fix/slated.js b/src/slated-org-fix/slated.js
new file mode 100644
index 0000000..4e9f11a
--- /dev/null
+++ b/src/slated-org-fix/slated.js
@@ -0,0 +1,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();
+}