Use a custom <no-script> element as <NOSCRIPT> replacement.
This commit is contained in:
parent
55d477dd5c
commit
df24338a04
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue