From f290ae38e180071f9cadfc739fc30c5392448eff Mon Sep 17 00:00:00 2001 From: Alex <1188@i.ua> Date: Wed, 12 Jul 2017 13:43:20 +0300 Subject: [PATCH] gazeta.ru https://github.com/AdguardTeam/AdguardFilters/issues/5660 --- RussianFilter/sections/antiadblock.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/RussianFilter/sections/antiadblock.txt b/RussianFilter/sections/antiadblock.txt index 72872c58d38..3e82236a61a 100644 --- a/RussianFilter/sections/antiadblock.txt +++ b/RussianFilter/sections/antiadblock.txt @@ -95,9 +95,16 @@ game-torrent.info,free-torrent.org,free-torrents.org#%#Object.defineProperty(win ! https://forum.adguard.com/index.php?threads/21075/ @@||ph4.ru$generichide ! https://forum.adguard.com/index.php?threads/21007/ +! ! Ads replacement script +gazeta.ru,lenta.ru,rambler.ru#%#(function() { var pr = window.Promise; var tostr = Function.prototype.toString; window.Promise = function(executor) { if(tostr.call(executor).indexOf('getRandomSelector') != -1) { console.log('caught!'); throw new Error(); } else { return new pr(executor); } }.bind(); Object.getOwnPropertyNames(pr).forEach(function(propName) { Object.defineProperty(window.Promise, propName, Object.getOwnPropertyDescriptor(pr, propName)); }); pr.prototype.constructor = window.Promise; })(); gazeta.ru,lenta.ru,rambler.ru$$script[tag-content="Anti-AdBlock-is-adblock"][max-length="65000"] www.rambler.ru,news.rambler.ru#%#Object.defineProperty(Object.prototype, 'checkAdBlockVisability', { set:function(){ throw new Error(); }}); +! For 6.1 only +||gazeta.ru^$important,replace=/this\[\"Anti-AdBlock\"\]/ +||lenta.ru^$important,replace=/this\[\"Anti-AdBlock\"\]/ +||rambler.ru^$important,replace=/this\[\"Anti-AdBlock\"\]/ +! ! https://forum.adguard.com/index.php?threads/http-knigilub-ru.20721/ @@||knigilub.ru^$generichide ! https://github.com/AdguardTeam/AdguardFilters/issues/4575