Script anti AdBlocker

MaxBong - Updated on May 13, 2021

CSS

/* Anti AdBlock By caynet */
#caynetunad {background:rgba(0,0,0,0.85);padding:0;position:fixed;bottom:0;left:0;top:-100px;right:0;z-index:1000;opacity:1;visibility:visible;height:auto;}
#caynetunad svg {width:100px; height:100px}
#caynetunad svg path {fill:#fff}
#caynetunad a{color:#ffe88b;} #caynetunad a:hover{color:#ffe88b;text-decoration:underline}
#caynetunad .alertAds{background:#e74c3c;color:#fff;position:absolute;text-align:center;padding:0 30px 30px 30px;margin:auto;top:30%;left:0;right:0;font-size:1.5rem;font-weight:400;line-height:1.5em;font-family:monospace;max-width:800px;box-shadow:0 20px 10px -10px rgba(0,0,0,0.15);border:15px solid rgba(0,0,0,.07); overflow:hidden; transition:all .6s cubic-bezier(.25,.8,.25,1); -webkit-transform:translateZ(0); transform:translateZ(0); backface-visibility:visible; transition:all .2s ease-in-out,visibility 0s; transform-origin:bottom center; pointer-events:auto; transform:rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1); opacity:1; animation:ignielWobble .5s; -moz-animation: ignielWobble .5s; -webkit-animation:ignielWobble .5s; -o-animation:ignielWobble .5s}
#caynetunad .alertAds:hover{box-shadow:0 20px 10px -10px rgba(0,0,0,0.2);}
#caynetunad .alertAds h4, #caynetunad .alertAds .titlead{display:inline-block;background:rgba(0,0,0,.07);padding:5px 25px 15px 25px;font-size:2.2rem;font-weight:600;margin-bottom:20px}
#caynetunad .tutupAds{visibility:hidden;opacity:0;color:#ffe88b;text-align:center;position:absolute;bottom:10px;right:10px;font-size:42px;cursor:pointer;width:30px;height:30px;line-height:30px;border-radius:100%;transition:all .6s cubic-bezier(.25,.8,.25,1);transform:translate(0,50px);}
#caynetunad .tutupAds:hover{color:#fff;transform:scale(1.0);}
#caynetunad .alertAds:hover .tutupAds{visibility:hidden;opacity:0;color:#ffe88b;transform:translate(0,0)}
@keyframes ignielWobble{0%{transform:scale(0) rotate(-54deg) translatey(40px)}45%{transform:scale(1.1) rotate(20deg) translatey(0px)}60%{transform:scale(1) rotate(-15deg) translatey(0px)}77%{transform:scale(1) rotate(10deg) translatey(0px)}100%{transform:translatey(0)}}
@-webkit-keyframes ignielWobble{0%{transform:scale(0) rotate(-54deg) translatey(40px)}45%{transform:scale(1.1) rotate(20deg) translatey(0px)}60%{transform:scale(1) rotate(-15deg) translatey(0px)}77%{transform:scale(1) rotate(10deg) translatey(0px)}100%{transform:translatey(0)}}
@-moz-keyframes ignielWobble{0%{transform:scale(0) rotate(-54deg) translatey(40px)}45%{transform:scale(1.1) rotate(20deg) translatey(0px)}60%{transform:scale(1) rotate(-15deg) translatey(0px)}77%{transform:scale(1) rotate(10deg) translatey(0px)}100%{transform:translatey(0)}}

Script

<script type='text/javascript'>
//<![CDATA[
(function caynetunad() {
  var titleAd = 'Ad Blocker Detected',
      noticeAd = 'Please consider supporting us by disabling your ad blocker.<br/>Thank you.',
	  ad = document.createElement('script');
      ad.type = 'text/javascript';
      ad.src = '//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js';
      ad.async = true;
      ad.onerror = function () {
          var caynet = document.createElement('div');
          caynet.id = 'caynetunad';
          caynet.innerHTML = '<div class=\"alertAds\"><span class=\"titlead\">' + titleAd + '</span><br/><svg viewBox=\"0 0 24 24\"><path d=\"M13,13H11V7H13M12,17.3A1.3,1.3 0 0,1 10.7,16A1.3,1.3 0 0,1 12,14.7A1.3,1.3 0 0,1 13.3,16A1.3,1.3 0 0,1 12,17.3M15.73,3H8.27L3,8.27V15.73L8.27,21H15.73L21,15.73V8.27L15.73,3Z\"></path></svg><br/>' + noticeAd + '</div>';
          document.body.append(caynet);
          document.body.style.overflow = 'hidden';
          window.adblock = true
      };
      var b_ad = document.getElementsByTagName('script')[0];
      b_ad.parentNode.insertBefore(ad, b_ad)
  })();
//]]>
</script>
# ad # blogger
Share this post: pinterest