From 43df802cff3d52e6778656449fdd070491d9d3b3 Mon Sep 17 00:00:00 2001 From: gorhill Date: Fri, 1 Dec 2017 12:34:29 -0500 Subject: [PATCH] fix #232 --- src/js/contentscript.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/js/contentscript.js b/src/js/contentscript.js index 443ea84..05b567d 100644 --- a/src/js/contentscript.js +++ b/src/js/contentscript.js @@ -495,6 +495,9 @@ var nodeListsAddedHandler = function(nodeLists) { // Executed only once. +// https://github.com/gorhill/uMatrix/issues/232 +// Force `display` property, Firefox is still affected by the issue. + (function() { var noscripts = document.querySelectorAll('noscript'); if ( noscripts.length === 0 ) { return; } @@ -508,6 +511,7 @@ var nodeListsAddedHandler = function(nodeLists) { if ( parent === null ) { continue; } span = document.createElement('span'); span.innerHTML = noscript.textContent; + span.style.setProperty('display', 'inline', 'important'); parent.replaceChild(span, noscript); } };