script anti adblock

Started by rixymidya, 11-06-2022

147
0
script anti adblock
  11-06-2022, 09:57 AM
#1
script javascript for anti adblock
Code:
<!-- Kill AdBlock -->
<script> //<![CDATA[
    /* Anti AdBlock By igniel.com */
    (function ignielAdBlock() {
      let adPub = '2299224833097933',
      adTitle = 'Disable AdBlock',
      adText = '<center>Thank You</center>',
      ad = document.createElement('script');
      ad.src = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js';
      ad.async = true;
      ad.setAttribute('crossorigin', 'anonymous');
      ad.onerror = function() {
        let a = document.createElement('div');
        a.className = 'ignielAdBlock';
        a.innerHTML = '<div class=\"adblock-outer\"><div class=\"adblock-inner\"><div class=\"adblock-icon\"><svg viewBox=\"0 0 24 24\"><path d=\"M3 10.5V15.5C3 20.19 6.81 24 11.5 24S20 20.19 20 15.5V7C20 5.62 18.88 4.5 17.5 4.5C17.33 4.5 17.16 4.5 17 4.55V4C17 2.62 15.88 1.5 14.5 1.5C14.27 1.5 14.04 1.53 13.83 1.59C13.46 .66 12.56 0 11.5 0C10.27 0 9.25 .89 9.04 2.06C8.87 2 8.69 2 8.5 2C7.12 2 6 3.12 6 4.5V8.05C5.84 8 5.67 8 5.5 8C4.12 8 3 9.12 3 10.5M5 10.5C5 10.22 5.22 10 5.5 10S6 10.22 6 10.5V15C7.66 15 9 16.34 9 18H11C11 15.95 9.77 14.19 8 13.42V4.5C8 4.22 8.22 4 8.5 4S9 4.22 9 4.5V11H11V2.5C11 2.22 11.22 2 11.5 2S12 2.22 12 2.5V11H14V4C14 3.72 14.22 3.5 14.5 3.5S15 3.72 15 4V12H17V7C17 6.72 17.22 6.5 17.5 6.5S18 6.72 18 7V15.5C18 19.09 15.09 22 11.5 22S5 19.09 5 15.5V10.5Z\"></path></svg></div><div class=\"adblock-wrapper\"><div class=\"adblock-title\">' + adTitle + '</div><div class=\"adblock-text\">' + adText + '</div></div></div></div>';
        document.body.append(a);
        document.body.style.overflow = 'hidden';
      };
      document.head.appendChild(ad);
    })();
    //]]> </script>

« Next Oldest | Next Newest »


Possibly Related Threads…
Thread Author Replies Views Last Post
Looking for popunder Script zero2000 1 2,225 04-25-2021, 07:06 AM
Last Post: zero2000



1 Guest(s)