aboutsummaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2022-10-13 13:03:45 +1100
committerYuchen Pei <hi@ypei.me>2022-10-13 13:03:45 +1100
commit63995b6c6f434361a4a680f959bacbcd4a083795 (patch)
tree836082692b8c4a682a6603a93718d10379fdd8cc /content
parent55c748d6a50af4e93b138bf73e37c71f946fab19 (diff)
Adding test for noscript.jsnoscript-toggle
Diffstat (limited to 'content')
-rw-r--r--content/noscript.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/content/noscript.js b/content/noscript.js
index 9cf1ac1..58445c5 100644
--- a/content/noscript.js
+++ b/content/noscript.js
@@ -24,6 +24,7 @@
for (const noscript of document.querySelectorAll(
'noscript:not([data-librejs-nodisplay])')) {
const replacement = document.createElement('span');
+ replacement.setAttribute('data-librejs-show-noscript', true);
replacement.innerHTML = noscript.innerHTML;
noscript.replaceWith(replacement);
}