From 63995b6c6f434361a4a680f959bacbcd4a083795 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Thu, 13 Oct 2022 13:03:45 +1100 Subject: Adding test for noscript.js --- content/noscript.js | 1 + 1 file changed, 1 insertion(+) (limited to 'content') 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); } -- cgit v1.2.3