From a9a0418d4dec3b57ea870f6dcf189a29823b9e66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Wr=C3=B3blewski?= Date: Tue, 12 Mar 2024 21:08:13 +0100 Subject: [PATCH] Fix #174753 cdromance.org --- BaseFilter/sections/antiadblock.txt | 3 +-- BaseFilter/sections/specific.txt | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/BaseFilter/sections/antiadblock.txt b/BaseFilter/sections/antiadblock.txt index 60e17e9aa73..8259631c667 100644 --- a/BaseFilter/sections/antiadblock.txt +++ b/BaseFilter/sections/antiadblock.txt @@ -1888,8 +1888,7 @@ decrypt.day#%#//scriptlet('set-constant', 'adsbygoogle', 'emptyObj') decrypt.day#%#//scriptlet('set-constant', 'adsbygoogle.loaded', 'true') decrypt.day#%#//scriptlet('trusted-set-constant', 'adsbygoogle.push', '"n=>{Ap(n,h,f)}"') decrypt.day#%#//scriptlet('prevent-fetch', 'pagead2.googlesyndication.com') -decrypt.day#%#(()=>{const a=a=>{const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let p="";for(let e=0;e{const t="0123456789";let p="";for(let e=0;e{const a=document.querySelector("ins.adsbygoogle[data-ad-slot]");let t;return a&&(t=a.getAttribute("data-ad-slot")),t||"1667120449"},e=(new Date).getTime(),m=Number(e.toString().slice(0,-3)),r=`
`,o={apply:(a,t,p)=>{const e=t[0];return e&&"string"==typeof e&&e.includes("aswift_1_host")&&(t[0]=e.replace(//,r)),Reflect.apply(a,t,p)}};window.Array.prototype.join=new Proxy(window.Array.prototype.join,o)})(); -decrypt.day#%#AG_onLoad((function(){const t=new Map([["data-ad-format","auto"],["data-full-width-responsive","true"],["data-adsbygoogle-status","done"],["data-ad-status","filled"]]),e=()=>{(()=>{const e=document.querySelector("ins.adsbygoogle");if(e){e.style.display="block",e.style.height="250px",t.forEach(((t,o)=>{e.setAttribute(o,t)}));const o=document.createDocumentFragment(),i=document.createElement("div");i.setAttribute("id","aswift_1_host"),i.setAttribute("style","border: none; height: 250px; width: 334px; margin: 0px; padding: 0px; position: relative; visibility: visible; background-color: transparent; display: inline-block;"),o.appendChild(i);const n=document.createElement("iframe");n.setAttribute("id","aswift_1"),n.name="aswift_1",n.setAttribute("style","left:0;position:absolute;top:0;border:0;width:334px;height:250px;"),i.appendChild(n),e.appendChild(o)}})(),(()=>{const e=document.querySelector("ins.adsbygoogle");if(!e)return;const o={attributes:!0,childList:!0,subtree:!0};new MutationObserver(((i,n)=>{for(const s of i){if("childList"===s.type&&s.removedNodes.length>0){const t=s.removedNodes[0];s.target.appendChild(t)}"attributes"===s.type&&(n.disconnect(),t.forEach(((t,e)=>{s.target.setAttribute(e,t)})),n.observe(e,o))}})).observe(e,o)})()};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#%#AG_onLoad((function(){const e=new Map([["data-ad-format","auto"],["data-full-width-responsive","true"],["data-adsbygoogle-status","done"],["data-ad-status","filled"]]),t=()=>{const e=location.pathname,t=document.querySelector(".content-wrapper .version-info[id]:not(#premier-generate):last-child"),o=document.querySelector('.content-wrapper .version-info[id]:not(#premier-generate):last-child .download > a[href="#download"]');if(!t||!o)return;const n=`${e}/dl/${t.getAttribute("id")}`;o.setAttribute("href",n);const r=o.cloneNode(!0);o.parentNode.replaceChild(r,o)},o=()=>{(()=>{const t=document.querySelector("ins.adsbygoogle");if(t){t.style.display="block",t.style.height="250px",e.forEach(((e,o)=>{t.setAttribute(o,e)}));const o=document.createDocumentFragment(),n=document.createElement("div");n.setAttribute("id","aswift_1_host"),n.setAttribute("style","border: none; height: 250px; width: 334px; margin: 0px; padding: 0px; position: relative; visibility: visible; background-color: transparent; display: inline-block;"),o.appendChild(n);const r=document.createElement("iframe");r.setAttribute("id","aswift_1"),r.name="aswift_1",r.setAttribute("style","left:0;position:absolute;top:0;border:0;width:334px;height:250px;"),n.appendChild(r),t.appendChild(o)}})(),t(),(()=>{const t=document.querySelector("ins.adsbygoogle");if(!t)return;const o={attributes:!0,childList:!0,subtree:!0};new MutationObserver(((n,r)=>{for(const i of n){if("childList"===i.type&&i.removedNodes.length>0){const e=i.removedNodes[0];i.target.appendChild(e)}"attributes"===i.type&&(r.disconnect(),e.forEach(((e,t)=>{i.target.setAttribute(t,e)})),r.observe(t,o))}})).observe(t,o)})(),(()=>{const e=document.querySelector(".content-wrapper .version-info[id]:not(#premier-generate):last-child .download");if(!e)return;const o={attributes:!0,childList:!0,subtree:!0};new MutationObserver(((n,r)=>{for(const i of n)"childList"===i.type&&i.addedNodes.length>0&&i.addedNodes[0]?.href?.includes("#download")&&(r.disconnect(),t(),r.observe(e,o))})).observe(e,o)})()};o(),(()=>{let e=document.location.href;const t=document.querySelector("body");new MutationObserver((t=>{e!==document.location.href&&(e=document.location.href,o())})).observe(t,{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[class="adsbygoogle"][style] diff --git a/BaseFilter/sections/specific.txt b/BaseFilter/sections/specific.txt index 7f52642059e..e33d991a393 100644 --- a/BaseFilter/sections/specific.txt +++ b/BaseFilter/sections/specific.txt @@ -329,6 +329,7 @@ $xmlhttprequest,third-party,denyallow=linkvertise.com|fastly.net|statically.io|s ! ! NOTE: Specific rules ! +cdromance.org##.sidebar > .widget_custom_html:has(div[id^="ezoic-pub-ad-placeholder-"]) goshennews.com##.tncms-region > div.tncms-block:has(> div.panel > div[style] > a[href="http://newspaperads.goshennews.com"]) goshennews.com###floorboard_block ||bloximages.chicago2.vip.townnews.com/*/ads_blox/resources/scripts/tnt.ads.init.*.js @@ -17957,7 +17958,7 @@ osmanonline.co.uk,pridesource.com,fuxdeluxe.com,getintocourse.com,nationalchroni !+ NOT_OPTIMIZED iproductkeys.com,siberkalem.com,readersfusion.com,artificialintelligencestechnology.com,techspite.com,aceofhacking.com,electronics-club.com,network-tools.com,tecmint.com,cyberciti.biz###custom_html-7 !+ NOT_OPTIMIZED -dailymusicroll.com,cdromance.com,pridesource.com,watchtv24.com,4sysops.com,artificialintelligencestechnology.com,paradacreativa.es,desiflix.club,cdromance.com,techspite.com,aceofhacking.com,nationalchronicle.in,valuewalk.com###custom_html-8 +cdromance.org,dailymusicroll.com,cdromance.com,pridesource.com,watchtv24.com,4sysops.com,artificialintelligencestechnology.com,paradacreativa.es,desiflix.club,cdromance.com,techspite.com,aceofhacking.com,nationalchronicle.in,valuewalk.com###custom_html-8 !+ NOT_OPTIMIZED hitbdsm.com,pridesource.com,bollyflix.lol,artificialintelligencestechnology.com,tecmint.com,embetronicx.com,arabtimesonline.com,javsister.com,desiflix.club,vladan.fr###custom_html-9 !+ NOT_OPTIMIZED @@ -17969,7 +17970,7 @@ watchfreejavonline.co,bollyflix.lol,artificialintelligencestechnology.com,hwnews !+ NOT_OPTIMIZED cat3movie.org,gossipfunda.com,paradacreativa.es###custom_html-14 !+ NOT_OPTIMIZED -gossipfunda.com,coingape.com,sonyalpharumors.com,investmentwatchblog.com,onlinecourses24x7.com,darkcapture.app###custom_html-15 +cdromance.org,gossipfunda.com,coingape.com,sonyalpharumors.com,investmentwatchblog.com,onlinecourses24x7.com,darkcapture.app###custom_html-15 !+ NOT_OPTIMIZED thepcenthusiast.com,4thsight.xyz,gossipfunda.com,stockingfetishvideo.com###custom_html-16 !+ NOT_OPTIMIZED