mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-04 08:37:11 +02: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;
|
count += 1;
|
||||||
if ( node === null ) { break; }
|
if ( node === null ) { break; }
|
||||||
if ( reNodeName.test(node.nodeName) === false ) { continue; }
|
if ( reNodeName.test(node.nodeName) === false ) { continue; }
|
||||||
|
if ( node === document.currentScript ) { continue; }
|
||||||
if ( handleNode(node) ) { continue; }
|
if ( handleNode(node) ) { continue; }
|
||||||
stop(); break;
|
stop(); break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user