From 8f4ee3e34d35478bf6040f14620d9e3d79870019 Mon Sep 17 00:00:00 2001 From: gorhill Date: Mon, 5 Oct 2015 10:58:24 -0400 Subject: [PATCH] support for `genericblock` filter option () --- src/js/static-net-filtering.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/static-net-filtering.js b/src/js/static-net-filtering.js index 92cc7af10..d593acf1a 100644 --- a/src/js/static-net-filtering.js +++ b/src/js/static-net-filtering.js @@ -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;