mirror of https://github.com/gorhill/uBlock.git
Reject generic HTML block filters
Related feedback: - https://github.com/uBlockOrigin/uBlock-issues/issues/1844 Generic HTML block filters will by highlighted as invalid and rejected by uBO at compile time.
This commit is contained in:
parent
8bad29fbcc
commit
1ac9c5ceb7
|
@ -324,6 +324,9 @@ const Parser = class {
|
||||||
}
|
}
|
||||||
this.flavorBits |= BITFlavorExtHTML;
|
this.flavorBits |= BITFlavorExtHTML;
|
||||||
selector = selector.slice(1);
|
selector = selector.slice(1);
|
||||||
|
if ( (this.hasOptions() || this.isException()) === false ) {
|
||||||
|
this.flavorBits |= BITFlavorUnsupported;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// ##...
|
// ##...
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue