class AB_Detector extends HTMLElement{constructor(){super();this._shadowRoot=this.attachShadow({'mode':'open'});this.isActive=false;} connectedCallback(){let $blockHtml=document.createElement('div');$blockHtml.classList.add("adblock-wrapper","center","hidden");$blockHtml.id='ads-blocked';$blockHtml.innerHTML=`
×

Please Disable ad blocker :(

Want more great films & Series? Help us by turning off your ad blocker. It's a small gesture that makes a big difference. Cheers!

`;this._shadowRoot.appendChild($blockHtml);setTimeout(()=>{this.check();},1000);} async check(){var e=new Request("https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js",{method:"HEAD",mode:"no-cors"});let isActive=false;await fetch(e).then(function(o){console.log("Valor de o",o);}).then(function(e){console.log("Valor de e",e);isActive=0;}).catch(function(e){console.log("Valor de 3",e);isActive=1;});this.isActive=isActive;console.log("Ta activo?",this.isActive);if(isActive){this._shadowRoot.querySelector("#ads-blocked").classList.remove("hidden");window.document.querySelector(".Main").style.filter="blur(8px)";}else{this._shadowRoot.querySelector("#ads-blocked").classList.add("hidden");}} disconnectedCallback(){console.log('disconnected');}} window.customElements.define('ab-detector',AB_Detector);