From a7901cd97e5faabfc10bf8b151f5645297840582 Mon Sep 17 00:00:00 2001 From: gorhill Date: Sun, 27 Dec 2015 12:34:40 -0500 Subject: [PATCH] this fixes entity-based script tag filters, as reported in https://github.com/IDKwhattoputhere --- src/js/cosmetic-filtering.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/cosmetic-filtering.js b/src/js/cosmetic-filtering.js index a6ffb90c8..b56480c57 100644 --- a/src/js/cosmetic-filtering.js +++ b/src/js/cosmetic-filtering.js @@ -959,7 +959,7 @@ FilterContainer.prototype.fromCompiledContent = function(text, lineBeg, skip) { // entity selector if ( fields[0] === 'e' ) { // Special filter: script tags. Not a real CSS selector. - if ( fields[2].startsWith('script?') ) { + if ( fields[2].startsWith('script') ) { this.createScriptFilter(fields[1], fields[2].slice(6)); continue; }