summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhackademix2018-07-08 10:02:11 +0200
committerhackademix2018-07-08 10:02:11 +0200
commitcf1b413bff9cfb2731e9a9811bb69fa07ebc0b19 (patch)
treefe6fe7956e4b73a23eba70e15c4b68f6cd231143
parent8b183f9c7061245048c61af69aa76607388ddc2e (diff)
downloadnoscript-cf1b413bff9cfb2731e9a9811bb69fa07ebc0b19.tar.gz
noscript-cf1b413bff9cfb2731e9a9811bb69fa07ebc0b19.tar.xz
noscript-cf1b413bff9cfb2731e9a9811bb69fa07ebc0b19.zip
Fixed <NOSCRIPT> replacements to be inline elements.
-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 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