diff options
author | hackademix | 2018-07-08 10:02:11 +0200 |
---|---|---|
committer | hackademix | 2018-07-08 10:02:11 +0200 |
commit | cf1b413bff9cfb2731e9a9811bb69fa07ebc0b19 (patch) | |
tree | fe6fe7956e4b73a23eba70e15c4b68f6cd231143 | |
parent | 8b183f9c7061245048c61af69aa76607388ddc2e (diff) | |
download | noscript-cf1b413bff9cfb2731e9a9811bb69fa07ebc0b19.tar.gz noscript-cf1b413bff9cfb2731e9a9811bb69fa07ebc0b19.tar.xz noscript-cf1b413bff9cfb2731e9a9811bb69fa07ebc0b19.zip |
Fixed <NOSCRIPT> replacements to be inline elements.
-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 e6c754a..49d3886 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("div"); + let replacement = document.createElement("span"); replacement.innerHTML = noscript.innerHTML; noscript.parentNode.replaceChild(replacement, noscript); // emulate meta-refresh |