summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhackademix2018-07-08 14:07:08 +0200
committerhackademix2018-07-08 14:07:08 +0200
commitdf24338a0446aaf936bd5ad626472177c3aa1cdd (patch)
tree790e59636cd357d2c5ee7ac4d9b13a390d39ec96 /src
parent55d477dd5c33bb6623b2195c7c8a77ed07f7dce0 (diff)
downloadnoscript-df24338a0446aaf936bd5ad626472177c3aa1cdd.tar.gz
noscript-df24338a0446aaf936bd5ad626472177c3aa1cdd.tar.xz
noscript-df24338a0446aaf936bd5ad626472177c3aa1cdd.zip
Use a custom <no-script> element as <NOSCRIPT> replacement.
Diffstat (limited to 'src')
-rw-r--r--src/content/onScriptDisabled.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/onScriptDisabled.js b/src/content/onScriptDisabled.js
index 49d3886..2c1c59c 100644
--- a/src/content/onScriptDisabled.js
+++ b/src/content/onScriptDisabled.js
@@ -1,7 +1,7 @@
function onScriptDisabled() {
for (let noscript of document.querySelectorAll("noscript")) {
// force show NOSCRIPT elements content
- let replacement = document.createElement("span");
+ let replacement = document.createElement("no-script");
replacement.innerHTML = noscript.innerHTML;
noscript.parentNode.replaceChild(replacement, noscript);
// emulate meta-refresh