mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-03 01:29:39 +02: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);
|
||||
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 ) {
|
||||
this.parseOptType('elemhide', false);
|
||||
this.action = BlockAction;
|
||||
|
Loading…
Reference in New Issue
Block a user