support for `genericblock` filter option (<https://issues.adblockplus.org/ticket/647>)

This commit is contained in:
gorhill 2015-10-05 10:58:24 -04:00
parent 3a4abc83d5
commit 8f4ee3e34d
1 changed files with 4 additions and 1 deletions

View File

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