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); } }