mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
cosmetic filtering: discard new ABP's CSS property filters (until implemented)
This commit is contained in:
parent
441336dc2f
commit
5a7ab32d24
@ -689,7 +689,11 @@ FilterContainer.prototype.isValidSelector = (function() {
|
|||||||
try {
|
try {
|
||||||
// https://github.com/gorhill/uBlock/issues/693
|
// https://github.com/gorhill/uBlock/issues/693
|
||||||
div.matches(s + ',\n#foo');
|
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) {
|
} catch (e) {
|
||||||
}
|
}
|
||||||
// We reach this point very rarely.
|
// We reach this point very rarely.
|
||||||
|
Loading…
Reference in New Issue
Block a user