From 424f9d14718541e041f949bfd6829ab513d1030c Mon Sep 17 00:00:00 2001 From: d3ward Date: Sun, 16 Jul 2023 23:21:21 +0000 Subject: [PATCH] deploy: 0a8d7fe662739f87e61fe0644c64433f8f62de92 --- js/adblock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/adblock.js b/js/adblock.js index 9194234..b77bef5 100644 --- a/js/adblock.js +++ b/js/adblock.js @@ -1 +1 @@ -(()=>{var t,e,o={383:function(t){t.exports=function(){"use strict";var t=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"])','input[type="radio"]:not([disabled]):not([tabindex^="-"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','iframe:not([tabindex^="-"])','audio[controls]:not([tabindex^="-"])','video[controls]:not([tabindex^="-"])','[contenteditable]:not([tabindex^="-"])','[tabindex]:not([tabindex^="-"])'];function e(t){this._show=this.show.bind(this),this._hide=this.hide.bind(this),this._maintainFocus=this._maintainFocus.bind(this),this._bindKeypress=this._bindKeypress.bind(this),this.$el=t,this.shown=!1,this._id=this.$el.getAttribute("data-a11y-dialog")||this.$el.id,this._previouslyFocused=null,this._listeners={},this.create()}function o(t,e){return o=(e||document).querySelectorAll(t),Array.prototype.slice.call(o);var o}function s(t){(t.querySelector("[autofocus]")||t).focus()}function n(){o("[data-a11y-dialog]").forEach((function(t){new e(t)}))}return e.prototype.create=function(){this.$el.setAttribute("aria-hidden",!0),this.$el.setAttribute("aria-modal",!0),this.$el.setAttribute("tabindex",-1),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),this._openers=o('[data-a11y-dialog-show="'+this._id+'"]'),this._openers.forEach(function(t){t.addEventListener("click",this._show)}.bind(this));const t=this.$el;return this._closers=o("[data-a11y-dialog-hide]",this.$el).filter((function(e){return e.closest('[aria-modal="true"], [data-a11y-dialog]')===t})).concat(o('[data-a11y-dialog-hide="'+this._id+'"]')),this._closers.forEach(function(t){t.addEventListener("click",this._hide)}.bind(this)),this._fire("create"),this},e.prototype.show=function(t){return this.shown||(document.documentElement.style.overflowY="hidden",this._previouslyFocused=document.activeElement,this.$el.removeAttribute("aria-hidden"),this.shown=!0,s(this.$el),document.body.addEventListener("focus",this._maintainFocus,!0),document.addEventListener("keydown",this._bindKeypress),this._fire("show",t)),this},e.prototype.hide=function(t){return this.shown?(document.documentElement.style.overflowY="",this.shown=!1,this.$el.setAttribute("aria-hidden","true"),this._previouslyFocused&&this._previouslyFocused.focus&&this._previouslyFocused.focus(),document.body.removeEventListener("focus",this._maintainFocus,!0),document.removeEventListener("keydown",this._bindKeypress),this._fire("hide",t),this):this},e.prototype.destroy=function(){return this.hide(),this._openers.forEach(function(t){t.removeEventListener("click",this._show)}.bind(this)),this._closers.forEach(function(t){t.removeEventListener("click",this._hide)}.bind(this)),this._fire("destroy"),this._listeners={},this},e.prototype.on=function(t,e){return void 0===this._listeners[t]&&(this._listeners[t]=[]),this._listeners[t].push(e),this},e.prototype.off=function(t,e){var o=(this._listeners[t]||[]).indexOf(e);return o>-1&&this._listeners[t].splice(o,1),this},e.prototype._fire=function(t,e){var o=this._listeners[t]||[],s=new CustomEvent(t,{detail:e});this.$el.dispatchEvent(s),o.forEach(function(t){t(this.$el,e)}.bind(this))},e.prototype._bindKeypress=function(e){const s=document.activeElement;s&&s.closest('[aria-modal="true"]')!==this.$el||(this.shown&&"Escape"===e.key&&"alertdialog"!==this.$el.getAttribute("role")&&(e.preventDefault(),this.hide(e)),this.shown&&"Tab"===e.key&&function(e,s){var n=function(e){return o(t.join(","),e).filter((function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}))}(e),a=n.indexOf(document.activeElement);s.shiftKey&&0===a?(n[n.length-1].focus(),s.preventDefault()):s.shiftKey||a!==n.length-1||(n[0].focus(),s.preventDefault())}(this.$el,e))},e.prototype._maintainFocus=function(t){!this.shown||t.target.closest('[aria-modal="true"]')||t.target.closest("[data-a11y-dialog-ignore-focus-trap]")||s(this.$el)},"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",n):window.requestAnimationFrame?window.requestAnimationFrame(n):window.setTimeout(n,16)),e}()}},s={};function n(t){var e=s[t];if(void 0!==e)return e.exports;var a=s[t]={exports:{}};return o[t].call(a.exports,a,a.exports,n),a.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,n.t=function(o,s){if(1&s&&(o=this(o)),8&s)return o;if("object"==typeof o&&o){if(4&s&&o.__esModule)return o;if(16&s&&"function"==typeof o.then)return o}var a=Object.create(null);n.r(a);var i={};t=t||[null,e({}),e([]),e(e)];for(var c=2&s&&o;"object"==typeof c&&!~t.indexOf(c);c=e(c))Object.getOwnPropertyNames(c).forEach((t=>i[t]=()=>o[t]));return i.default=()=>o,n.d(a,i),a},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";const t=JSON.parse('{"Ads":{"Amazon":["adtago.s3.amazonaws.com","analyticsengine.s3.amazonaws.com","analytics.s3.amazonaws.com","advice-ads.s3.amazonaws.com","advertising-api-eu.amazon.com"],"Google Ads":["pagead2.googlesyndication.com","adservice.google.com","pagead2.googleadservices.com","afs.googlesyndication.com"],"Doubleclick.net":["stats.g.doubleclick.net","ad.doubleclick.net","static.doubleclick.net","m.doubleclick.net","mediavisor.doubleclick.net"],"Adcolony":["ads30.adcolony.com","adc3-launch.adcolony.com","events3alt.adcolony.com","wd.adcolony.com"],"Media.net":["static.media.net","media.net","adservetx.media.net"]},"Analytics":{"Google Analytics":["app-measurement.com","analytics.google.com","click.googleanalytics.com","google-analytics.com","ssl.google-analytics.com"],"Hotjar":["adm.hotjar.com","identify.hotjar.com","insights.hotjar.com","script.hotjar.com","surveys.hotjar.com","careers.hotjar.com","events.hotjar.io"],"MouseFlow":["mouseflow.com","cdn.mouseflow.com","o2.mouseflow.com","gtm.mouseflow.com","api.mouseflow.com","tools.mouseflow.com","cdn-test.mouseflow.com"],"FreshWorks":["freshmarketer.com","claritybt.freshmarketer.com","fwtracks.freshmarketer.com"],"Luckyorange":["luckyorange.com","api.luckyorange.com","realtime.luckyorange.com","cdn.luckyorange.com","w1.luckyorange.com","upload.luckyorange.net","cs.luckyorange.net","settings.luckyorange.net"],"Stats WP Plugin":["stats.wp.com"]},"Error Trackers":{"Bugsnag":["notify.bugsnag.com","sessions.bugsnag.com","api.bugsnag.com","app.bugsnag.com"],"Sentry":["browser.sentry-cdn.com","app.getsentry.com"]},"Social Trackers":{"Facebook":["pixel.facebook.com","an.facebook.com"],"Twitter":["static.ads-twitter.com","ads-api.twitter.com"],"LinkedIn":["ads.linkedin.com","analytics.pointdrive.linkedin.com"],"Pinterest":["ads.pinterest.com","log.pinterest.com","analytics.pinterest.com","trk.pinterest.com","widgets.pinterest.com"],"Reddit":["events.reddit.com","events.redditmedia.com"],"YouTube":["ads.youtube.com"],"TikTok":["ads-api.tiktok.com","analytics.tiktok.com","ads-sg.tiktok.com","analytics-sg.tiktok.com","business-api.tiktok.com","ads.tiktok.com","log.byteoversea.com"]},"Mix":{"Yahoo":["ads.yahoo.com","analytics.yahoo.com","geo.yahoo.com","udc.yahoo.com","udcm.yahoo.com","advertising.yahoo.com","analytics.query.yahoo.com","partnerads.ysm.yahoo.com","log.fc.yahoo.com","gemini.yahoo.com","adtech.yahooinc.com"],"Yandex":["extmaps-api.yandex.net","appmetrica.yandex.ru","adfstat.yandex.ru","metrika.yandex.ru","advertising.yandex.ru","offerwall.yandex.net","adfox.yandex.ru"],"Unity":["auction.unityads.unity3d.com","webview.unityads.unity3d.com","config.unityads.unity3d.com","adserver.unityads.unity3d.com"]},"OEMs":{"Realme":["iot-eu-logser.realme.com","iot-logser.realme.com","bdapi-ads.realmemobile.com","bdapi-in-ads.realmemobile.com"],"Xiaomi":["api.ad.xiaomi.com","data.mistat.xiaomi.com","data.mistat.india.xiaomi.com","data.mistat.rus.xiaomi.com","sdkconfig.ad.xiaomi.com","sdkconfig.ad.intl.xiaomi.com","globalapi.ad.xiaomi.com","tracking.rus.miui.com"],"Oppo":["adsfs.oppomobile.com","adx.ads.oppomobile.com","ck.ads.oppomobile.com","data.ads.oppomobile.com"],"Huawei":["metrics.data.hicloud.com","metrics2.data.hicloud.com","grs.hicloud.com","logservice.hicloud.com","logservice1.hicloud.com","logbak.hicloud.com"],"OnePlus":["click.oneplus.cn","open.oneplus.net"],"Samsung":["samsungads.com","smetrics.samsung.com","nmetrics.samsung.com","samsung-com.112.2o7.net","analytics-api.samsunghealthcn.com"],"Apple":["advertising.apple.com","tr.iadsdk.apple.com","iadsdk.apple.com","metrics.icloud.com","metrics.apple.com","metrics.mzstatic.com","api-adservices.apple.com","books-analytics-events.apple.com","weather-analytics-events.apple.com","notes-analytics-events.apple.com"]}}');var e=n.t(t,2);const o={download:"",delete:"",cdot:"",v:"",x:"",Ads:"",Analytics:"","Error Trackers":"",Mix:"",OEMs:"","Social Trackers":"",OnePlus:"",Xiaomi:"",Huawei:"",Samsung:"",Apple:"",Facebook:"",Twitter:"",Sentry:"",Bugsnag:"",LinkedIn:"",Pinterest:"",Reddit:"",TikTok:"",Yahoo:"",Hotjar:"",YouTube:"",Unity:"","Google Ads":"","Google Analytics":"",Adcolony:""};function s(){var t=this;t.n=document.querySelector("nav"),t.close=function(){document.body.style.overflow="auto",t.n.classList.remove("active")},t.open=function(){document.body.style.overflow="hidden",t.n.classList.add("active")},t.n&&(document.querySelector("nav>button").addEventListener("click",(()=>{console.log("toggleNav"),t.n.classList.contains("active")?t.close():t.open()})),document.querySelector("nav>.nav-overlay").addEventListener("click",(()=>{t.close()})),document.querySelectorAll("nav ul > a").forEach((e=>e.addEventListener("click",(()=>{t.close()})))))}var a=n(383),i=n.n(a);function c(){var t=document.getElementsByClassName("theme-toggle");if(window.CSS&&CSS.supports("color","var(--bg)")&&t){var e=localStorage.getItem("theme")||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light");e&&document.documentElement.setAttribute("data-theme",e);for(var o=0;o{window.scrollY>0?t.gt.classList.remove("hidden"):t.gt.classList.add("hidden")})),t.gt.onclick=function(e){e.preventDefault(),(document.documentElement.scrollTop||document.body.scrollTop>0)&&t.scrollToTop()}},t.gt&&t.listeners()}function l(){let t=document.querySelectorAll("[class*=_aos]");if(IntersectionObserver&&t){let e=new IntersectionObserver((function(t){t.forEach((t=>{t.isIntersecting&&!t.target.classList.contains("_aos-done")?t.target.classList.add("_aos-done"):t.target.classList.remove("_aos-done")}))}),{root:null,threshold:0});t.forEach((t=>{e.observe(t)}))}}function d(t,e){t.style.opacity=0,t.style.display=e||"block",function e(){var o=parseFloat(t.style.opacity);(o+=.1)>1||(t.style.opacity=o,requestAnimationFrame(e))}()}class h{constructor(t){this.LS=null,this.name=t,this.checkLS(),this.init(t)}clearAll(){this.LS.clear()}checkLS(){window&&window.localStorage?this.LS=window.localStorage:console.log("localStorage is there?")}init(t){this.LS&&(this.LS[t]?this.data=JSON.parse(this.LS[t]):this.data={})}set(t,e){this.data[t]=e,this.LS&&(this.LS[this.name]=JSON.stringify(this.data))}get(t){return!!this.data[t]&&this.data[t]}}const u=document.querySelector("#dlg_changelog");new(i())(u);var m=new h("toolz");const p="3.0.0";m.get("version")!==p&&m.set("version",p);var v=new h("adb_tool"),g=v.get("results"),w=v.get("settings");w&&w.showCF||(w={collapseAll:!0,showCF:!0,showSL:!0},v.set("settings",w));var y="";g||(g=[]);var f=document.getElementById("test_log"),b=new function(t){const e=this;e.snack=document.createElement("div"),e.snack.className="snackbar",e.message=document.createElement("div"),e.snack.appendChild(e.message),document.body.appendChild(e.snack),e.top=t.topPos,e.classNames=t.classNames,e.autoClose="boolean"==typeof t.autoClose&&t.autoClose,e.autoCloseTimeout=t.autoClose&&"number"==typeof t.autoCloseTimeout?t.autoCloseTimeout:3e3,e.reset=function(){e.message.innerHTML="",e.snack.classList.remove(e.classNames)},e.show=function(t,o){e.hide(),e.message.innerHTML=t,e.snack.style.top=e.top,e.snack.classList.add(o||e.classNames),e.autoClose&&setTimeout((function(){e.hide()}),e.autoCloseTimeout)},e.hide=function(){e.snack.style.top="-100%",e.reset()}}({topPos:"10px",classNames:"success",autoClose:!0,autoCloseTimeout:2e3});async function k(t){try{await navigator.clipboard.writeText(t).then((()=>{b.show("URL copied to clipboard !")}))}catch(e){const o=document.createElement("textarea");o.value=t,o.setAttribute("readonly",""),o.style.position="absolute",o.style.left="-9999px",document.body.appendChild(o),o.select(),o.setSelectionRange(0,99999),document.execCommand("copy"),o.remove(),b.show("URL copied to clipboard !")}}var _={total:0,blocked:0,notblocked:0,cosmetic_test:{static:null,dynamic:null},script:{ads:null,pagead:null,partnerads:null},hosts:{}};const x=document.getElementById("test");async function M(t,e,s,n,a){const i=new AbortController,c={method:"HEAD",mode:"no-cors",signal:i.signal},r=setTimeout((()=>{i.abort()}),8e3);_.total+=1;var l=document.createElement("div");l.onclick=()=>{k(t)},e.appendChild(l);try{await fetch("https://"+t,c,r,s,e).then((e=>{console.log(e),"basic"==e.type&&200==e.status?(l.innerHTML=o.v+""+t+"",_.blocked+=1,Object.assign(_.hosts[n][a],{[t]:!0}),y+="
"+t+" - blocked"):(s.style.background="var(--red)",l.innerHTML=o.x+""+t+"",_.notblocked+=1,Object.assign(_.hosts[n][a],{[t]:!1}),y+="
"+t+" - not blocked")})).catch((e=>{console.log(e),console.log(e.message),l.innerHTML=o.v+""+t+"",_.blocked+=1,Object.assign(_.hosts[n][a],{[t]:!0}),y+="
"+t+" - blocked"}))}catch(t){console.log(t)}}function L(t,e){document.querySelectorAll(".test_collapse").forEach((o=>{1==t?o.parentElement.classList.add("show"):o.parentElement.classList.remove("show"),1==e&&o.addEventListener("click",(()=>{o.parentElement.classList.toggle("show")}))}))}const C=document.querySelector("#ctd_test");const E=document.querySelector(".lt_particles"),S=document.querySelector(".lt_cwrap");async function z(){document.querySelector(".lt_wrap").classList.add("start"),S.classList.add("start");let t=[];return 1==w.showCF?(_.total+=4,t.push(void setTimeout((function(){const t=document.querySelector("#cts_test");_.cosmetic_test.static=!t.clientHeight&&!t.offsetHeight&&"block"!=window.getComputedStyle(t,null).getPropertyValue("display"),_.blocked+=_.cosmetic_test.static?2:0,_.notblocked+=_.cosmetic_test.static?0:2,document.querySelector("#ct_static").classList.add(_.cosmetic_test.static?"_bg-green":"_bg-red");let e=document.createElement("div");f.appendChild(e),e.innerHTML=" cosmetic_static_ad : "+_.cosmetic_test.static+"

------------------------- ",H()}),500)),t.push(function(){let t=document.createElement("div"),e=document.createElement("div");e.id="ad_ctd",e.className="textads banner-ads banner_ads ad-unit afs_ads ad-zone ad-space adsbox",e.innerHTML=" ",C.appendChild(e),setTimeout((function(){let e=document.querySelector("#ad_ctd");_.cosmetic_test.dynamic=!e.offsetHeight&&!e.clientHeight&&"block"!=window.getComputedStyle(e,null).getPropertyValue("display"),_.blocked+=_.cosmetic_test.dynamic?2:0,_.notblocked+=_.cosmetic_test.dynamic?0:2,f.appendChild(t),t.innerHTML=" cosmetic_dynamic_ad : "+_.cosmetic_test.dynamic+"

------------------------- ",document.querySelector("#ct_dynamic").classList.add(_.cosmetic_test.dynamic?"_bg-green":"_bg-red"),H()}),500)}())):document.querySelector("#cf_wrap").style.display="none",1==w.showSL?(_.total+=6,t.push(function(){let t=document.createElement("div");const e=document.querySelector("#sfa_1"),o=document.querySelector("#sfa_2"),s=document.querySelector("#sfa_3");_.script.ads="undefined"==typeof s_test_ads,_.script.pagead="undefined"==typeof s_test_pagead,_.script.partnerads="undefined"==typeof s_test_partnerads,e.classList.add(_.script.ads?"_bg-green":"_bg-red"),o.classList.add(_.script.pagead?"_bg-green":"_bg-red"),s.classList.add(_.script.partnerads?"_bg-green":"_bg-red"),_.blocked+=(_.script.ads?2:0)+(_.script.pagead?2:0)+(_.script.partnerads?2:0),_.notblocked+=(_.script.ads?0:2)+(_.script.pagead?0:2)+(_.script.partnerads?0:2),f.appendChild(t),t.innerHTML="
script_ads : "+_.script.ads+"
script_pagead : "+_.script.pagead+"
script_partenrads : "+_.script.partnerads+"

------------------------- ",H()}())):document.querySelector("#sl_wrap").style.display="none",t.push(async function(){let t=[];return Object.keys(e).forEach((s=>{if("default"!=s){var n=document.createElement("div");n.className="grid",n.id=s,n.innerHTML="
"+o[s]+"  "+s+"
",x.appendChild(n);var a=e[s],i=0;_.hosts[s]={};var c=document.createElement("div");c.classList.add("col-6");var r=document.createElement("div");r.classList.add("col-6"),n.appendChild(r),n.appendChild(c);var l=0;Object.keys(a).forEach((e=>{var n=document.createElement("div"),d=0,h=document.createElement("div");const u=document.createElement("div");h.classList.add("test"),h.id=e,h.style.background="var(--green)";let m=null!=o[e]?o[e]+" ":"";if(h.innerHTML=""+m+e+"",h.appendChild(u),l%2==0?r.appendChild(h):c.appendChild(h),l++,Object.assign(_.hosts[s],{[e]:{}}),Object.prototype.hasOwnProperty.call(a,e)){var p=a[e];for(let o=0;o{H()}))),d++}n.innerHTML=e+" => n° tests => "+d,f.appendChild(n),i+=d}));var d=document.createElement("div");d.innerHTML=s+" => Total n° tests => "+i+"
------------------------- ",f.appendChild(d)}})),await Promise.all(t)}()),await Promise.all(t)}function H(){var t=100/_.total*_.blocked,e=t>30?t>60?"var(--green)":"var(--orange)":"var(--red)";document.body.style.setProperty("--liquid-percentage",45-t+"%"),document.body.style.setProperty("--liquid-color",e),document.body.style.setProperty("--liquid-title","'"+Math.round(t)+"%'")}function A(){!function(t,e){t.style.opacity=1,function o(){(t.style.opacity-=.1)<0?(t.style.display="none",e&&e()):requestAnimationFrame(o)}()}(E,(()=>{document.querySelector(".lt_wrap").classList.remove("start"),d(E,"flex"),document.body.classList.remove("_overflowhidden")})),S.classList.remove("start"),console.log(_)}function T(){var t=document.querySelector(".r_wrap");t.innerHTML="",g.forEach(((e,s)=>{var n=document.createElement("div");n.className="col-6";var a=g[s].abt,i=""+o.cdot+"Total : "+a.total+"
"+o.x+" "+a.notblocked+" not blocked"+o.v+" "+a.blocked+" blocked";n.innerHTML="
"+i+"
"+e.date+'