mirror of https://github.com/gorhill/uBlock.git
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