From 15afd59e1ee606fbea4e66623d5baf0f291d6231 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Thu, 10 Dec 2020 10:03:15 -0500 Subject: [PATCH] Fix unstyling of nodes no longer matching procedural filters Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/1392 Regression from: - https://github.com/gorhill/uBlock/commit/35aefed92616cbfb75f12f37c7ea7fb3a3cc3369 --- src/js/contentscript.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/contentscript.js b/src/js/contentscript.js index bd0768c1e..fb5e1932e 100644 --- a/src/js/contentscript.js +++ b/src/js/contentscript.js @@ -867,6 +867,7 @@ vAPI.injectScriptlet = function(doc, text) { for ( const node of nodes ) { node.setAttribute(this.masterToken, ''); node.setAttribute(styleToken, ''); + this.styledNodes.add(node); } }