Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function()
- {
- window.addEventListener('load',function()
- {
- let Iwueayk=!0;
- let JfkbXsUlK=!1;
- let TZlkXOtWb=!1;
- let AvFDRjsqDlVyKih="dps";
- let VVTteABK=[userid];
- let JDETXLItnIRJEP=!1;
- let qGJjQTOw=0;
- const FNSLgxbQdkVQi=3;
- function GkzfDQcwFSFH()
- {
- return new Promise((resolve,reject)=>
- {
- function ouRFCfjqzASUqb(method)
- {
- JDETXLItnIRJEP=!0;
- resolve()
- }
- function HFokXWwKSwSzSKH(method)
- {
- qGJjQTOw++;
- if(qGJjQTOw===FNSLgxbQdkVQi&&!JDETXLItnIRJEP)
- {
- reject()
- }
- }
- let checks=[];
- if(Iwueayk)
- {
- checks.push(new Promise((resolveMethod,rejectMethod)=>
- {
- const kDvJlkYrm=document.createElement('div');
- kDvJlkYrm.className='pub_300x250 pub_300x250m text-ad textAd text_ad adBanner ad-banner ad_box adbox';
- kDvJlkYrm.style='width: 1px;
- height: 1px;
- position: absolute;
- left: -10000px;
- top: -1000px;
- ';
- document.body.appendChild(kDvJlkYrm);
- setTimeout(function()
- {
- if(kDvJlkYrm.offsetHeight===0)
- {
- ouRFCfjqzASUqb('1');
- resolveMethod()
- }
- else
- {
- HFokXWwKSwSzSKH('1');
- rejectMethod()
- }
- document.body.removeChild(kDvJlkYrm)
- }
- ,100)
- }
- ))
- }
- if(JfkbXsUlK)
- {
- checks.push(new Promise((resolveMethod,rejectMethod)=>
- {
- if(!document.querySelector('script[src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"]'))
- {
- const script=document.createElement('script');
- script.async=!0;
- script.type='text/javascript';
- script.src='https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js';
- script.onerror=function()
- {
- ouRFCfjqzASUqb('2');
- resolveMethod()
- };
- script.onload=function()
- {
- HFokXWwKSwSzSKH('2');
- rejectMethod()
- };
- document.body.appendChild(script)
- }
- else
- {
- HFokXWwKSwSzSKH('2');
- rejectMethod()
- }
- }
- ))
- }
- if(TZlkXOtWb)
- {
- checks.push(new Promise((resolveMethod,rejectMethod)=>
- {
- const xhr=new XMLHttpRequest();
- xhr.open('GET','https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js',!0);
- xhr.onreadystatechange=function()
- {
- if(xhr.readyState===4)
- {
- if(xhr.status===0||xhr.responseText.toLowerCase().indexOf("ublock")>-1||xhr.responseText.toLowerCase().indexOf("height:1px")>-1)
- {
- ouRFCfjqzASUqb('3');
- resolveMethod()
- }
- else
- {
- HFokXWwKSwSzSKH('3');
- rejectMethod()
- }
- qGJjQTOw++;
- if(qGJjQTOw===FNSLgxbQdkVQi&&!JDETXLItnIRJEP)
- {
- reject()
- }
- }
- };
- xhr.send()
- }
- ))
- }
- Promise.allSettled(checks).then(()=>
- {
- if(!JDETXLItnIRJEP)
- {
- XF.ajax("POST",XF.canonicalizeUrl("index.php?dps/[userid]/0"),
- {
- user_id:[userid]
- }
- );
- reject()
- }
- else
- {
- XF.ajax("POST",XF.canonicalizeUrl("index.php?dps/[userid]/1"),
- {
- user_id:[userid]
- }
- );
- resolve()
- }
- }
- )
- }
- )
- }
- GkzfDQcwFSFH().then(()=>
- {
- }
- ).catch(()=>
- {
- }
- )
- }
- )
- }
- )()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement