1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-02 02:14:52 +12:00
This commit is contained in:
gorhill 2017-12-01 12:34:29 -05:00
parent db30e572db
commit 43df802cff
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -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);
}
};