1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 12:57:57 +02:00

cosmetic filtering: discard new ABP's CSS property filters (until implemented)

This commit is contained in:
gorhill 2016-03-02 08:10:59 -05:00
parent 441336dc2f
commit 5a7ab32d24

View File

@ -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.