Use a custom <no-script> element as <NOSCRIPT> replacement.

This commit is contained in:
hackademix 2018-07-08 14:07:08 +02:00
parent 55d477dd5c
commit df24338a04
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
function onScriptDisabled() { function onScriptDisabled() {
for (let noscript of document.querySelectorAll("noscript")) { for (let noscript of document.querySelectorAll("noscript")) {
// force show NOSCRIPT elements content // force show NOSCRIPT elements content
let replacement = document.createElement("span"); let replacement = document.createElement("no-script");
replacement.innerHTML = noscript.innerHTML; replacement.innerHTML = noscript.innerHTML;
noscript.parentNode.replaceChild(replacement, noscript); noscript.parentNode.replaceChild(replacement, noscript);
// emulate meta-refresh // emulate meta-refresh