From 14d90418b8208ddaf0ba464c694cd6f0d7058afe Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 21 Jul 2024 08:34:18 -0400 Subject: [PATCH] Fix regression in `trusted-replace-node-text` scriptlet Related commit: https://github.com/gorhill/uBlock/commit/8afd9e233d3c43f51d21e4e51d24e643089d9853 --- assets/resources/scriptlets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/resources/scriptlets.js b/assets/resources/scriptlets.js index 8c9f8b007..f731a929f 100644 --- a/assets/resources/scriptlets.js +++ b/assets/resources/scriptlets.js @@ -715,7 +715,7 @@ function replaceNodeTextFn( const rePattern = safe.patternToRegex(pattern, 'gms'); const extraArgs = safe.getExtraArgs(Array.from(arguments), 3); const reIncludes = safe.patternToRegex(extraArgs.includes || extraArgs.condition || '', 'ms'); - const reExcludes = safe.patternToRegex(extraArgs.excludes || '', 'ms'); + const reExcludes = safe.patternToRegex(extraArgs.excludes || '.^', 'ms'); const stop = (takeRecord = true) => { if ( takeRecord ) { handleMutations(observer.takeRecords());