1
0
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:
gorhill 2015-10-05 10:58:24 -04:00
parent 3a4abc83d5
commit 8f4ee3e34d

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;