diff options
author | hackademix | 2018-07-08 14:07:08 +0200 |
---|---|---|
committer | hackademix | 2018-07-08 14:07:08 +0200 |
commit | df24338a0446aaf936bd5ad626472177c3aa1cdd (patch) | |
tree | 790e59636cd357d2c5ee7ac4d9b13a390d39ec96 /src/content | |
parent | 55d477dd5c33bb6623b2195c7c8a77ed07f7dce0 (diff) | |
download | noscript-df24338a0446aaf936bd5ad626472177c3aa1cdd.tar.gz noscript-df24338a0446aaf936bd5ad626472177c3aa1cdd.tar.xz noscript-df24338a0446aaf936bd5ad626472177c3aa1cdd.zip |
Use a custom <no-script> element as <NOSCRIPT> replacement.
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/onScriptDisabled.js | 2 |
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 |