From 5a7ab32d24660916b0ac25c6b3bd5042201d0731 Mon Sep 17 00:00:00 2001 From: gorhill Date: Wed, 2 Mar 2016 08:10:59 -0500 Subject: [PATCH] cosmetic filtering: discard new ABP's CSS property filters (until implemented) --- src/js/cosmetic-filtering.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/js/cosmetic-filtering.js b/src/js/cosmetic-filtering.js index 16eecb5d1..30591cc04 100644 --- a/src/js/cosmetic-filtering.js +++ b/src/js/cosmetic-filtering.js @@ -689,7 +689,11 @@ FilterContainer.prototype.isValidSelector = (function() { try { // https://github.com/gorhill/uBlock/issues/693 div.matches(s + ',\n#foo'); - return true; + // Discard new ABP's `-abp-properties` directive until it is + // implemented (if ever). + if ( s.indexOf('[-abp-properties=') === -1 ) { + return true; + } } catch (e) { } // We reach this point very rarely.