From 0e71b8296c1b2d2085afeea5b73349e55ce6feb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Wr=C3=B3blewski?= Date: Mon, 15 Apr 2024 15:03:46 +0200 Subject: [PATCH] Fix #177060 uploadbank.com --- BaseFilter/sections/antiadblock.txt | 8 ++++++++ BaseFilter/sections/general_extensions.txt | 2 -- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/BaseFilter/sections/antiadblock.txt b/BaseFilter/sections/antiadblock.txt index 2de9becb322..0512a3407a3 100644 --- a/BaseFilter/sections/antiadblock.txt +++ b/BaseFilter/sections/antiadblock.txt @@ -1091,6 +1091,14 @@ pornhub.com,pornhub.org,pornhub.net#%#//scriptlet('prevent-setTimeout', '\x41\x6 ! ! NOTE: Regular rules ! +! https://github.com/AdguardTeam/AdguardFilters/issues/177060 +! It looks like that website allows to download files only from the specific website(s), +! perhaps by checking header - referrer (setting document.referrer doesn't fix the problem). +! So, the rule below adds a click event listener to the link, and when it's clicked then +! it opens a new tab with one of the allowed website, the address of the website contains special parameter "cc" and encoded in Base64 link to file. +! This "cc" parameter is checked and decoded by inline script from the opened website and then it redirects to the file. +uploadbank.com#%#AG_onLoad((function(){const t=document.querySelector('a[href*="uploadbank.com/cgi-bin/dl.cgi/"]');if(t){const e=t.getAttribute("href");t.addEventListener("click",(t=>{try{const t=`{"link":"${e}"}`,c=`https://leasurepartment.xyz/?cc=${btoa(t)}`;window.open(c)}catch(t){console.debug(t)}}))}})); +leasurepartment.xyz#%#//scriptlet('abort-current-inline-script', 'document.createElement', 'onerror') ! https://github.com/AdguardTeam/AdguardFilters/issues/177077 @@||afk.guide/wp-content/plugins/wordpress-popup/assets/js/ad.min.js afk.guide#%#//scriptlet('abort-on-stack-trace', 'Array.prototype.includes', 'adblockTrigger') diff --git a/BaseFilter/sections/general_extensions.txt b/BaseFilter/sections/general_extensions.txt index 680f8934d41..7a3b8265ac7 100644 --- a/BaseFilter/sections/general_extensions.txt +++ b/BaseFilter/sections/general_extensions.txt @@ -1458,8 +1458,6 @@ k1nk.co#%#//scriptlet('abort-current-inline-script', '$', 'advCookie') ace.mu.nu#%#//scriptlet("abort-on-property-read", "__yget_ad_list") ! https://github.com/AdguardTeam/AdguardFilters/issues/115422 bclikeqt.com#%#//scriptlet("prevent-window-open") -! https://github.com/AdguardTeam/AdguardFilters/issues/115352 -uploadbank.com#%#//scriptlet("prevent-window-open") ! https://github.com/AdguardTeam/AdguardFilters/issues/115293 gocomics.com#%#//scriptlet("set-constant", "amuGc.displayAds", "false") ! popup at https://www.goflix.io/10540-aquaman.html