From 9d4006f2c38884055c99342a37ff47f41f55c0ca Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 21 Aug 2021 11:50:46 -0400 Subject: [PATCH] Include query string when evaluating `matches-path()` Related feedback: - https://github.com/uBlockOrigin/uBlock-issues/issues/1690#issuecomment-903133439 --- src/js/contentscript-extra.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/contentscript-extra.js b/src/js/contentscript-extra.js index 22721cd54d0be..7f7fa52928139 100644 --- a/src/js/contentscript-extra.js +++ b/src/js/contentscript-extra.js @@ -111,7 +111,7 @@ const PSelectorMatchesPathTask = class { this.needle = new RegExp(arg0, arg1); } transpose(node, output) { - if ( this.needle.test(self.location.pathname) ) { + if ( this.needle.test(self.location.pathname + self.location.search) ) { output.push(node); } }