mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-05 10:22:30 +01:00
Improve trusted-replace-node-text
scriptlet
Related discussion: https://github.com/uBlockOrigin/uAssets/discussions/24143
This commit is contained in:
parent
bdb99862ce
commit
cb0f65e035
@ -764,6 +764,7 @@ function replaceNodeTextFn(
|
||||
count += 1;
|
||||
if ( node === null ) { break; }
|
||||
if ( reNodeName.test(node.nodeName) === false ) { continue; }
|
||||
if ( node === document.currentScript ) { continue; }
|
||||
if ( handleNode(node) ) { continue; }
|
||||
stop(); break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user