0% found this document useful (0 votes)
78 views2 pages

Script Anti-Adblock No Blogger

Uploaded by

jeffyborges
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views2 pages

Script Anti-Adblock No Blogger

Uploaded by

jeffyborges
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Procure por </b:skin> e adicione o CSS abaixo sobre ele

.popSc{position:fixed;z-
index:99999;top:0;bottom:0;left:0;right:0;padding:20px;background:#f3f5fe;display:f
lex;justify-content:center;align-items:center}
.popSc.hidden{display:none}
.popSc .popBo{position:relative;background:#fff;max-
width:400px;display:flex;justify-content:center;align-items:center;flex-
direction:column;padding:30px;border-radius:30px}
.popSc .popBo svg{display:block;width:50px;height:50px;fill:none !
important;stroke:#08102b;stroke-linecap:round;stroke-linejoin:round;stroke-
width:1.5}
.popSc .popBo h2{margin:10px 0 15px 0;font-size:1.2rem;font-
weight:800;color:#08102b}
.popSc .popBo p{margin:0;line-height:1.7em;font-size:0.9rem;color:#08102b}
.darkMode .popSc{background:#1f1f1f}
.darkMode .popSc .popBo{background:#2c2d31}
.darkMode .popSc .popBo svg{stroke:#fefefe}
.darkMode .popSc .popBo p, .darkMode .popSc .popBo h2{color:#fefefe}

========================================================================

Adicione o HTML abaixo sobre </body>

<div class='popSc hidden' id='antiAdBlock'>


<div class='popBo'>
<svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><circle cx='12'
cy='12' r='10'/><line x1='12' x2='12' y1='8' y2='12'/><line x1='12' x2='12.01'
y1='16' y2='16'/></svg>
<h2>Ad-Blocker detectado!</h2>
<p>Desculpe, detectamos que você ativou o Ad-Blocker.<br/>Por favor, considere
nos apoiar desativando seu Ad-Blocker, isso nos ajuda a desenvolver este
site.<br/>Obrigado!</p>
</div>
</div>

========================================================================

Agora adicione o JS abaixo acima de </body>

<script>/*<![CDATA[*/ /* Anti Ad-Blocker Script by Fineshop (Lazyload) */ var


lazyAnti=!1;window.addEventListener("scroll",function(){(0!
=document.documentElement.scrollTop&&!1===lazyAnti||0!=document.body.scrollTop&&!
1===lazyAnti)&&(!function(){var
antiAdBlock=document.querySelector("#antiAdBlock");var
e=document.createElement("script");e.type="text/javascript",e.async=!
0,e.src="https://pagead2.googlesyndication.com/pagead/js/
adsbygoogle.js";e.onerror=function(){if(antiAdBlock!=null)
{antiAdBlock.classList.remove("hidden");window.lazyAnti=!0}};var
a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(e,a)}
(),lazyAnti=!0)},!0); /*]]>*/</script>

========================================================================

Para mais dicas visite

Site: https://thotbuzz.com/blog
Youtube: https://www.youtube.com/jsbtricks

Telegram: https://t.me/jsbtricks

========================================================================

You might also like