From 09e3b45b36ec8c863324ff972bc17f3a6e988061 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Wr=C3=B3blewski?= Date: Wed, 6 Mar 2024 10:50:54 +0100 Subject: [PATCH] Fix #174176 japanhub.net --- BaseFilter/sections/allowlist_stealth.txt | 3 +++ BaseFilter/sections/antiadblock.txt | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/BaseFilter/sections/allowlist_stealth.txt b/BaseFilter/sections/allowlist_stealth.txt index 2d3e92025b8..7adab65a585 100644 --- a/BaseFilter/sections/allowlist_stealth.txt +++ b/BaseFilter/sections/allowlist_stealth.txt @@ -22,6 +22,9 @@ ! ! ! +! https://github.com/AdguardTeam/AdguardFilters/issues/174176 +@@||play.openhub.tv^$stealth=referrer +@@||anyhentai.com/*.mp4$stealth=referrer ! https://github.com/AdguardTeam/AdguardFilters/issues/174074 @@||emturbovid.com/t/*?poster=$stealth=referrer ! https://github.com/AdguardTeam/AdguardFilters/issues/173995 diff --git a/BaseFilter/sections/antiadblock.txt b/BaseFilter/sections/antiadblock.txt index 3ce03329350..8221711d8ea 100644 --- a/BaseFilter/sections/antiadblock.txt +++ b/BaseFilter/sections/antiadblock.txt @@ -1895,7 +1895,11 @@ uptoearn.xyz#%#//scriptlet('trusted-replace-node-text', 'script', 'downloadConfi @@||decrypt.day^$generichide decrypt.day#%#//scriptlet('set-constant', 'adsbygoogle', 'emptyObj') decrypt.day#%#//scriptlet('set-constant', 'adsbygoogle.loaded', 'true') -decrypt.day#%#AG_onLoad((function(){const e=()=>{(()=>{const e=document.querySelector("ins.adsbygoogle");if(e){e.style.display="block",e.style.height="250px";const t=document.createDocumentFragment(),o=document.createElement("div");o.setAttribute("id","aswift_1_host"),t.appendChild(o);const n=document.createElement("iframe");n.setAttribute("id","aswift_1_host"),o.appendChild(n),e.appendChild(t)}})(),(()=>{const e=document.querySelector("ins.adsbygoogle");new MutationObserver(((e,t)=>{for(const t of e)if("childList"===t.type&&t.removedNodes.length>0){const e=t.removedNodes[0];t.target.appendChild(e)}})).observe(e,{attributes:!0,childList:!0,subtree:!0})})()};e(),(()=>{let t=document.location.href;const o=document.querySelector("body");new MutationObserver((o=>{t!==document.location.href&&(t=document.location.href,e())})).observe(o,{childList:!0,subtree:!0})})()})); +decrypt.day#%#//scriptlet('prevent-fetch', 'pagead2.googlesyndication.com') +decrypt.day#%#AG_onLoad((function(){const e=()=>{(()=>{const e=document.querySelector("ins.adsbygoogle");if(e){e.style.display="block",e.style.height="250px";const t=document.createDocumentFragment(),o=document.createElement("div");o.setAttribute("id","aswift_1_host"),t.appendChild(o);const n=document.createElement("iframe");n.setAttribute("id","aswift_1_host"),o.appendChild(n),e.appendChild(t)}})(),(()=>{const e=document.querySelector("ins.adsbygoogle");if(!e)return;new MutationObserver(((e,t)=>{for(const t of e)if("childList"===t.type&&t.removedNodes.length>0){const e=t.removedNodes[0];t.target.appendChild(e)}})).observe(e,{attributes:!0,childList:!0,subtree:!0})})()};e(),(()=>{let t=document.location.href;const o=document.querySelector("body");new MutationObserver((o=>{t!==document.location.href&&(t=document.location.href,e())})).observe(o,{childList:!0,subtree:!0})})()})); +! Hiding this element causes detection, but it's fixed by the $replace rule +!+ PLATFORM(windows, mac, android) +decrypt.day##body ins.adsbygoogle[style] !#if (adguard_app_ios || adguard_ext_android_cb || adguard_ext_safari) decrypt.day#@#ins.adsbygoogle @@||pagead2.googlesyndication.com/pagead/js/adsbygoogle.js$domain=decrypt.day