Skip to content

Commit

Permalink
Improve trusted-replace-node-text scriptlet
Browse files Browse the repository at this point in the history
Related discussion:
uBlockOrigin/uAssets#24143
  • Loading branch information
gorhill committed Jun 18, 2024
1 parent bdb9986 commit cb0f65e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/resources/scriptlets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit cb0f65e

Please sign in to comment.