From 4606c2fef7acaded0cab270021b364607d529351 Mon Sep 17 00:00:00 2001 From: Alex <1188@i.ua> Date: Sat, 10 Sep 2016 22:02:46 +0300 Subject: [PATCH] https://github.com/AdguardTeam/AdguardFilters/issues/2962 --- EnglishFilter/sections/antiadblock.txt | 2 +- SafariFilter/sections/antiadblock.txt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/EnglishFilter/sections/antiadblock.txt b/EnglishFilter/sections/antiadblock.txt index 14213fb22c5..e617eb1c3c1 100644 --- a/EnglishFilter/sections/antiadblock.txt +++ b/EnglishFilter/sections/antiadblock.txt @@ -6,7 +6,7 @@ uploaded.net,today.it,mokeedev.com,yuncomics.com,shencomics.com,persnacons.tisto ! BlockAdBlock gofobo.com,supercineonline.tv,apkmos.com,userscdn.com,vidoser.org,uplod.it,uplod.it,dasolo.org,sharejunction.com#%#(function() { var _setTimeout = window.setTimeout, regex = /bab_elementid/; window.setTimeout = function(a, b) { if ( typeof a !== 'string' || !regex.test(a) ) { _setTimeout(a, b); } }; })(); animetake.tv,d-h.st,hackintosh.computer,androidsage.com,fullstuff.co,bnonews.com,animmex.net,sadeempc.com#%#(function() { var _eval = window.eval; window.eval = function(a) { if ( a.toString().indexOf('babasbmsgx') === -1 ) { _eval(a); return; } }; })(); -hulkpop.com#%#(function() { var _setTimeout = window.setTimeout, regex = /bab/; window.setTimeout = function(a, b) { if ( typeof a !== 'string' || !regex.test(a) ) { _setTimeout(a, b); } }; })(); +hulkpop.com,mackungfu.org#%#(function() { var _setTimeout = window.setTimeout, regex = /bab/; window.setTimeout = function(a, b) { if ( typeof a !== 'string' || !regex.test(a) ) { _setTimeout(a, b); } }; })(); ! addition for BlockAdBlock beta blockadblock.com#%#(function() { var sto = window.setTimeout, re = /\.bab_elementid.$/; window.setTimeout = function(a, b) { if ( typeof a !== 'string' || !re.test(a) ) { return sto(a, b); } }.bind(window); var realEval = window.eval; window.eval = function(a) { if ( a.toString().search(/blockadblock|babasbmsgx|getItem\('babn'\)/) === -1 ) { realEval(a); return; } var el = document.body; if ( el ) { el.style.removeProperty('visibility'); } el = document.getElementById('babasbmsgx'); if ( el ) { el.style.setProperty('visibility', 'collapse'); } }.bind(window); })(); blockadblock.com###babasbmsgx diff --git a/SafariFilter/sections/antiadblock.txt b/SafariFilter/sections/antiadblock.txt index dd6f632f656..a2e25cc4ac4 100644 --- a/SafariFilter/sections/antiadblock.txt +++ b/SafariFilter/sections/antiadblock.txt @@ -1,6 +1,8 @@ ! ! These rules are against anti-adblock scripts ! +! https://github.com/AdguardTeam/AdguardFilters/issues/2962 +@@||mackungfu.org^$generichide ! https://github.com/AdguardTeam/AdguardFilters/issues/2883 @@||animetake.tv^$elemhide ! https://github.com/AdguardTeam/AdguardFilters/issues/2834