mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
support for genericblock
filter option (<https://issues.adblockplus.org/ticket/647>)
This commit is contained in:
parent
3a4abc83d5
commit
8f4ee3e34d
@ -1454,7 +1454,10 @@ FilterParser.prototype.parseOptions = function(s) {
|
|||||||
this.parseOptParty(false, not);
|
this.parseOptParty(false, not);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ( opt === 'elemhide' ) {
|
// https://issues.adblockplus.org/ticket/647
|
||||||
|
// `genericblock` concept already supported, just a matter of
|
||||||
|
// adding support for the new keyword.
|
||||||
|
if ( opt === 'elemhide' || opt === 'genericblock' ) {
|
||||||
if ( this.action === AllowAction ) {
|
if ( this.action === AllowAction ) {
|
||||||
this.parseOptType('elemhide', false);
|
this.parseOptType('elemhide', false);
|
||||||
this.action = BlockAction;
|
this.action = BlockAction;
|
||||||
|
Loading…
Reference in New Issue
Block a user