How to Install an Anti-Adblock Script on Blogger Website

Please wait 0 seconds...
Scroll Down and click on Go to Link for destination
Congrats! Link is Generated

Hello Everyone! Welcome back to FreemiumTech Website. How are you all? I Hope you all are well. Today I will share a tutorial about How to Install an Anti-Adblock Script on Blogger Website. So without wasting more time let's start today's article.

What is an AdBlocker?

There are many internet users who install AdBlock on their computers or mobile phones. The reason is quite simple because they don't want to be disturbed by advertisements that appear on websites when they are read news or information they need.

This method is not wrong, because they want to focus on what they are looking for, namely getting information in the article without being distracted by advertising. But what about the owners blog who deliberately place advertisements on their website pages?

This is indeed a problem for site owners or bloggers who link their blogs to the Google Adsense program to earn money from advertisements that appear on their site pages. As a result, Google Adsense ads do not appear. So how to overcome this?

How does AdBlocker Affect Adsense Earning?

We who blog and earn money using Adsense on our website, know that Adsense pays on Ad Impression and Click. But when a visitor visits our website with AdBlocker extension on their browser, an ad is displayed on their browser. does not load Adblocker extension removes all the ads. And if the ads are not loaded, then no impression or click will come from that visitor. So if we add this anti ad blocker script to our blogger blog, then the revenue from our website will increase

Benefits and Problem of Anti Adblocker script

Benefits

AdSense has the potential to increase the number of impressions and clicks.

Problems

Bounce rate is likely to increase. For those who don't know what bounce rate is, let me tell them, when a visitor clicks on a website from a search engine's search result and how much time he spends reading that webpage after clicking, then from that webpage to another page on that website. Visited or not! Bounce rate is calculated with these.

When a visitor visits our website and leaves immediately, then the bounce rate of our website increases. Due to the increase in bounce rate, our website can lose rank in search engines. Because, if the bounce rate is high, Google does not look favorably on that webpage. And Being bad in the eyes of Google means losing rank.

we add Anti Adblock Script for Blogger to our blog and visitors get bored and leave our website immediately, the bounce rate of our website will increase. So before adding Anti Adblock plugin, this aspect should be noted.

How to Install an Anti-Adblock Script on Blogger?

One way you can ensure that advertisements continue to appear is by installing an Anti-AdBlock script. By installing this script on a website, the script will notify visitors who use the AdBlock extension or a special browser that can block ads through a simple notification so that visitors delete or temporarily deactivate AdBlock.

Steps to Install Anti-AdBlock Script on Blogger

If you want to install the Anti-AdBlock script on Blogger, here are the steps you can follow:

Step 1. Open your Blogger Dashboard.

Step 2. Click the "Layout" menu.

Step 3. Then click "Add Gadget" then select "HTML/Javascript"

Step 4. Next copy the following script and paste it into the gadget column.

<style type='text/css'>
/* Animation */
@keyframes fadeInDown{0%{opacity:0;transform:translateY(-20px)}100%{opacity:1;transform:translateY(0)}}@keyframes rubberBand{from{transform:scale3d(1,1,1)}30%{transform:scale3d(1.25,0.75,1)}40%{transform:scale3d(0.75,1.25,1)}50%{transform:scale3d(1.15,0.85,1)}65%{transform:scale3d(.95,1.05,1)}75%{transform:scale3d(1.05,.95,1)}to{transform:scale3d(1,1,1)}}#arlinablock{background:rgba(0,0,0,0.65);position:fixed;margin:auto;left:0;right:0;top:0;bottom:0;overflow:auto;z-index:999999;animation:fadeInDown 1s}#arlinablock .header{margin:0 0 15px}#arlinablock .inner{background:#E74C3C;color:#fff;box-shadow:0 5px 20px rgba(0,0,0,0.1);text-align:center;width:600px;padding:40px;border-radius:5px;margin:7% auto 2%;animation:rubberBand 1s}#arlinablock button{padding:10px 20px;border:0;background:rgba(0,0,0,0.15);color:#fff;margin:20px 5px;cursor:pointer;transition:all .3s}#arlinablock button:hover{background:rgba(0,0,0,0.35);color:#fff;outline:none}#arlinablock button.active,#arlinablock button:hover.active{background:#fff;color:#222;outline:none}#arlinablock .fixblock{background:#fff;text-align:left;color:#000;padding:20px;height:250px;overflow:auto;line-height:30px}#arlinablock .fixblock div{display:none}#arlinablock .fixblock div.active{display:block}#arlinablock ol{margin-left:20px}@media(max-width:768px){#arlinablock .inner{width:calc(100% - 20px);margin:10px auto;padding:15px}}.inner h2{color: whitesmoke;text-shadow: black;}

/* Say Hi to Adblock */
#arlinablock{background:rgba(0,0,0,0.65);position:fixed;margin:auto;left:0;right:0;top:0;bottom:0;overflow:auto;z-index:999999;animation:fadeInDown 1s}#arlinablock .header{margin:0 0 15px}#arlinablock .inner{background:#E74C3C;color:#fff;box-shadow:0 5px 20px rgba(0,0,0,0.1);text-align:center;width:600px;padding:40px;border-radius:5px;margin:7% auto 2%;animation:rubberBand 1s}#arlinablock button{padding:10px 20px;border:0;background:rgba(0,0,0,0.15);color:#fff;margin:20px 5px;cursor:pointer;transition:all .3s}#arlinablock button:hover{background:rgba(0,0,0,0.35);color:#fff;outline:none}#arlinablock button.active,#arlinablock button:hover.active{background:#fff;color:#222;outline:none}#arlinablock .fixblock{background:#fff;text-align:left;color:#000;padding:20px;height:250px;overflow:auto;line-height:30px}#arlinablock .fixblock div{display:none}#arlinablock .fixblock div.active{display:block}#arlinablock ol{margin-left:20px}@media(max-width:768px){#arlinablock .inner{width:calc(100% - 20px);margin:10px auto;padding:15px}}
</style>

<script type='text/javascript'>
//<![CDATA[
// Say Hi to Adblock
function downloadJSAtOnload(){var e=document.createElement("script");e.src="https://cdn.jsdelivr.net/gh/Arlina-Design/quasar@master/arlinablock.js",document.body.appendChild(e)}window.addEventListener?window.addEventListener("load",downloadJSAtOnload,!1):window.attachEvent?window.attachEvent("onload",downloadJSAtOnload):window.onload=downloadJSAtOnload;
//]]>
</script>

Information: You can change the word according to your works.

Step 5. Once finished, now save and see the results.

Install it in the Template

Apart from Layout, you can also add the script above to your template directly via "Edit Template". For that go to Blogger Dashboard > Theme > Edit HTML. Then place the CSS code  above the ]]></b:skin> or </style> tag and Place the Javascript code right above the </body> or &lt;/body&gt; tag.

Some more Script

I have shared a few more scripts that you can use according to your choice.

image_title_here image_title_here image_title_here image_title_here
<style>
/* Note By  FreemiumTech */ .note{position:relative;padding:16px 20px 16px 50px; background:#e1f5fe;color:#3c4043; font-size:.85rem;font-family:var(--fontB);line-height:1.6em;border-radius:10px;overflow:hidden} .note::before{content:'';width:60px;height:60px;background:#81b4dc;display:block;border-radius:50%;position:absolute;top:-12px;left:-12px;opacity:.1} .note::after{content:'\002A';position:absolute;left:18px;top:16px; font-size:20px; min-width:15px;text-align:center} .note.wr{background:#ffdfdf;color:#48525c} .note.wr::before{background:#e65151} .note.wr::after{content:'\0021'} </style>

<script>//<![CDATA[ 
!function() {function f() {var a=document.getElementById("postBody");a.innerHTML='<p class="note noteAlert blocked"><strong>Ad-Block Detected :((</strong><br><br>Sorry, We detected that you have activated Ad-Blocker.&nbsp;<br> Please Consider supporting us by disabling your Ad-Blocker,It helps us in maintaining this website.&nbsp;<br>To View the content disable adblocker and refresh the page.<br><br>Thank You !!!</p>';} var b=document.createElement("script");b.type="text/javascript";b.async=!0;b.src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js";b.onerror=function() {f();window.adblock=!0};var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(b,e)}(); 
//]]></script>
<style>
.popSc{position:fixed;z-index:99999;top:0;bottom:0;left:0;right:0;padding:20px;background:#f3f5fe;display:flex;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} </style>

<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'/></line></line></circle></svg>
    <h2>Ad-Blocker Detected!</h2>
    <p>Sorry, we detected that you have activated Ad-Blocker.<br/>Please consider supporting us by disabling your Ad-Blocker, it helps us in developing this Website.<br/>Thank you!</p>
  </div>
</div>

<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>
<style>#pbt{backdrop-filter:blur(5px);background:rgba(0,0,0,.25);padding:20px
  19px;border:1px solid
  #ebeced;border-radius:10px;color:#ebeced;overflow:hidden;position:fixed;margin:auto;left:10;right:10;top:0;width:100%;height:100%;overflow:auto;z-index:999999}#pbt
  .inner{background:#f5f2f2;color:#000;box-shadow:0 5px 20px
  rgba(0,0,0,.1);text-align:center;width:600px;padding:40px;margin:80px
  auto}#pbt button{padding:10px
  20px;border:0;background:#e9e9e9;margin:20px;box-shadow:0 5px 10px
  rgba(0,0,0,.3);cursor:pointer;transition:all .2s}#pbt
  button.active{background:#fff}#pbt
  .tutorial{background:#fff;text-align:left;color:#000;padding:20px;height:250px;overflow:auto;line-height:30px}#pbt
  .tutorial div{display:none}#pbt .tutorial div.active{display:block}#pbt
  ol{margin-left:20px}@media(max-width:680px){#pbt .inner{width:calc(100% -
  80px);margin:auto}}</style>

<script type='text/javascript'> //<![CDATA[ 
// Anti Adblock Script by https://www.probloggertips.xyz/
  var _0x4e59=['split','253248lFzjJB','remove','hidden','shift','insertBefore','text/javascript','.close','25369fWTUro','parentNode','11wLvilQ','querySelector','async','314264FiyqLS','classList','.tutorial\x20>\x20div','pbt','getElementsByTagName','class','1133687koVsRN','body','211oQwqSt','getAttribute','div','511964rWHMCI','overflow','onerror','149820roGHEi','append','length','1zTOvzf','76874CJYKiZ','1201508bOwHPJ','script','5gbMVAo','437279JtzAiA','add','button','682713FbpvLi','push','7qXwdrl','198139ipIhBA','src','1145snhYTy','1upMcDZ','active','style','preventDefault','https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js','type'];function _0x505a(_0x18d840,_0x1cec87){_0x18d840=_0x18d840-0x171;var _0x4e591f=_0x4e59[_0x18d840];return _0x4e591f;}var _0xa00dd1=_0x505a;(function(_0xb39422,_0x25d9d1){var _0x73d56c=_0x505a;while(!![]){try{var _0x1b40f8=parseInt(_0x73d56c(0x17f))+parseInt(_0x73d56c(0x18f))*parseInt(_0x73d56c(0x179))+parseInt(_0x73d56c(0x177))*parseInt(_0x73d56c(0x182))+parseInt(_0x73d56c(0x184))+-parseInt(_0x73d56c(0x18a))+parseInt(_0x73d56c(0x183))+parseInt(_0x73d56c(0x18c))*-parseInt(_0x73d56c(0x18d));if(_0x1b40f8===_0x25d9d1)break;else _0xb39422['push'](_0xb39422['shift']());}catch(_0x3ceed6){_0xb39422['push'](_0xb39422['shift']());}}}(_0x4e59,0xb3266));var _0x1484=[_0xa00dd1(0x1a1),_0xa00dd1(0x196),_0xa00dd1(0x19d),_0xa00dd1(0x186),_0xa00dd1(0x17e),'<div\x20class=\x22inner\x22>\x20<div\x20class=\x22header\x22>\x20<center><img\x20style=\x22clear:\x20both;\x20text-align:\x20center;\x22\x20border=\x220\x22\x20data-original-height=\x22260\x22\x20data-original-width=\x22260\x22\x20src=\x22https://blogger.googleusercontent.com/img/a/AVvXsEhfLghiUtf7zGkv2eWd7RW1wnC2rgVj7ghqVBFX3pEwK7NinOD3oEtvBQ6Q_TF1FB-Lc4INGM0O95B79_kHZvv1a8yO8Z8BBKidACSLhl1zlqT9bPuSZi468RAIdSgPUQ8MN-7gZvdgeguLqFjYbp4-6Ugtr9Ni4gLtn_fy3uz1SNwhygCIr7O4t3-n\x22\x20/></center>\x20<h2>Ad\x20Blocker\x20Detected\x20:(</h2>\x20</div>\x20<div\x20class=\x22isi\x22>\x20<p>Please\x20consider\x20supporting\x20us\x20by\x20disabling\x20your\x20ad\x20blocker.</p><p>Please\x20Disable\x20your\x20adblocker\x20and\x20Refresh\x20the\x20page\x20to\x20view\x20the\x20site\x20content.</p><div></br></div>\x20\x20<div\x20class=\x22pbtadblock\x22></div>\x20</div>\x20</div>\x20</div>',_0xa00dd1(0x174),_0xa00dd1(0x1a2),_0xa00dd1(0x181),_0xa00dd1(0x18e),_0xa00dd1(0x188),'querySelectorAll','classList',_0xa00dd1(0x19b),_0xa00dd1(0x178),'22532LpgvBI',_0xa00dd1(0x192),'adblock','createElement','click',_0xa00dd1(0x197),_0xa00dd1(0x17c),_0xa00dd1(0x190),'innerHTML',_0xa00dd1(0x173),_0xa00dd1(0x17a),_0xa00dd1(0x180),_0xa00dd1(0x171),'1UJEfNY',_0xa00dd1(0x185),_0xa00dd1(0x187),_0xa00dd1(0x19e),_0xa00dd1(0x17d),_0xa00dd1(0x191),_0xa00dd1(0x195),'616480ksPrca',_0xa00dd1(0x19c),_0xa00dd1(0x1a0),_0xa00dd1(0x194)];function _0xb322(_0x360eee,_0x283601){_0x360eee=_0x360eee-0xd0;var _0x1f5f85=_0x1484[_0x360eee];return _0x1f5f85;}(function(_0x12fdb1,_0x557074){var _0x3722dd=_0xa00dd1,_0x43195d=_0xb322;while(!![]){try{var _0x55075c=parseInt(_0x43195d(0xf2))+parseInt(_0x43195d(0xd3))*parseInt(_0x43195d(0xd5))+-parseInt(_0x43195d(0xda))+-parseInt(_0x43195d(0xd2))+-parseInt(_0x43195d(0xd6))*parseInt(_0x43195d(0xe1))+-parseInt(_0x43195d(0xdc))*-parseInt(_0x43195d(0xed))+parseInt(_0x43195d(0xf3))*parseInt(_0x43195d(0xf4));if(_0x55075c===_0x557074)break;else _0x12fdb1[_0x3722dd(0x18b)](_0x12fdb1[_0x3722dd(0x19a)]());}catch(_0x852811){_0x12fdb1[_0x3722dd(0x18b)](_0x12fdb1[_0x3722dd(0x19a)]());}}}(_0x1484,0x5fe32),!function(){var _0x348e45=_0xa00dd1,_0xfadb33=_0xb322;function _0x3412ca(){var _0x189dcd=_0x505a,_0x5a1fb6=_0xb322,_0xfeac31=document[_0x5a1fb6(0xf0)](_0x189dcd(0x17b));_0xfeac31['id']=_0x5a1fb6(0xe4),_0xfeac31[_0x5a1fb6(0xf5)]=_0x5a1fb6(0xe3),document[_0x5a1fb6(0xec)][_0x5a1fb6(0xd1)](_0xfeac31),document[_0x189dcd(0x178)][_0x5a1fb6(0xee)][_0x5a1fb6(0xd7)]=_0x189dcd(0x199);var _0x4978cd=_0xfeac31[_0x5a1fb6(0xe9)](_0x189dcd(0x189));_0xfeac31[_0x5a1fb6(0xde)](_0x5a1fb6(0xe0));var _0x143455=_0xfeac31['querySelectorAll'](_0x5a1fb6(0xf6));for(_0xfeac31=0x0;_0xfeac31<_0x4978cd[_0x5a1fb6(0xe6)];_0xfeac31++)_0x4978cd[_0xfeac31]['addEventListener'](_0x5a1fb6(0xf1),function(_0x732378){var _0x2a1017=_0x189dcd,_0x290da2=_0x5a1fb6;_0x732378[_0x2a1017(0x193)](),_0x732378=this[_0x290da2(0xd0)](_0x2a1017(0x176))[_0x290da2(0xdf)]('\x20')[0x0];for(var _0x40a8d9=0x0;_0x40a8d9<_0x143455[_0x290da2(0xe6)];_0x40a8d9++)_0x143455[_0x40a8d9][_0x290da2(0xea)]['remove'](_0x2a1017(0x191)),_0x4978cd[_0x40a8d9]['classList'][_0x2a1017(0x198)]('active');_0x4978cd[_0x732378-0x1][_0x2a1017(0x172)][_0x290da2(0xe8)](_0x290da2(0xd8)),_0x143455[_0x732378-0x1][_0x290da2(0xea)][_0x290da2(0xe8)](_0x2a1017(0x191));});}var _0x206c7b=document[_0xfadb33(0xf0)](_0xfadb33(0xd4));_0x206c7b[_0xfadb33(0xd9)]=_0xfadb33(0xdb),_0x206c7b[_0xfadb33(0xe5)]=!0x0,_0x206c7b[_0xfadb33(0xe7)]=_0xfadb33(0xdd),_0x206c7b[_0xfadb33(0xe2)]=function(){var _0xcaaee5=_0xfadb33;_0x3412ca(),window[_0xcaaee5(0xef)]=!0x0;};var _0x340314=document[_0x348e45(0x175)](_0x348e45(0x185))[0x0];_0x340314[_0x348e45(0x19f)][_0xfadb33(0xeb)](_0x206c7b,_0x340314);}());
          //]]>
</script>
 <style>
/* Pop-Up Box (Style 1) by FreemiumTech */
.popSc{position:fixed;z-index:99981;top:0;bottom:0;left:0;right:0;padding:20px;background:#f3f5fe;display:flex;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}
.popSc .popBo .popBtn{display:inline-flex;justify-content:center;align-items:center;height:50px;width:50px;outline:none;border:none;background:#f3f5fe;border-radius:50%;margin-top:20px;transition:all .2s ease;-webkit-transition:all .2s ease}
.popSc .popBo .popBtn:hover{transform:scale(1.05);-webkit-transform:scale(1.05)}
.popSc .popBo .popBtn svg{width:24px;height:24px;flex-shrink:0;opacity:.8}
.popSc .popBo .popBtn svg.r{animation:rotateIcn 1.5s infinite linear;-webkit-animation:rotateIcn 1.5s infinite linear}
.darkMode .popSc, .darkMode .popSc .popBo .popBtn{background:#1f1f1f}
.darkMode .popSc .popBo{background:#2c2d31}
.darkMode .popSc .popBo svg{stroke:#fefefe}
.darkMode .popSc .popBo p, .darkMode .popSc .popBo  h2{color:#fefefe}
@keyframes rotateIcn{from{transform:rotate(0deg)} to{transform:rotate(359deg)}}
@-webkit-keyframes rotateIcn{from{-webkit-transform:rotate(0deg)} to{-webkit-transform:rotate(359deg)}}
</style>

<script>/*<![CDATA[*/
/**
 * Anti Ad Blocker Code by FreemiumTech Design
 * Last Updated: 16:42 12/08/2023 IST
 * Copyright: [Deo Kumar]*/
(function(){const n=document,o=n.head;var t="pointer-events: none; height: 1px; width: 0; opacity: 0; visibility: hidden; position: fixed; bottom: 0;";const a=n.createElement("div"),s=n.createElement("div"),d=n.createElement("ins");a.id="div-gpt-ad-3061307416813-0",a.style=t,s.className="textads banner-ads banner_ads ad-unit ad-zone ad-space adsbox ads",s.style=t,d.className="adsbygoogle",d.style="display: none;";const i={allowed:null,elements:[a,s,d]};this.checkAdsStatus=function(t){const e=n.body;"function"==typeof t&&("boolean"==typeof i.allowed?t(i):(e.appendChild(a),e.appendChild(s),e.appendChild(d),setTimeout(function(){if(0===a.offsetHeight||0===s.offsetHeight||d.firstElementChild)i.allowed=!1,t(i);else{const e=n.createElement("script");e.src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js",e.async=!0,e.crossOrigin="anonymous",e.onload=function(){i.allowed=!0,t(i)},e.onerror=function(){i.allowed=!1,t(i)},o.appendChild(e)}a.remove(),s.remove(),d.remove()},40)))}}).call(this);

function antiAdBlockerHandler() {
  window.checkAdsStatus(function(ads) {
    if (!ads.allowed) {
      // Ads are Blocked
      console.log("%c[ADS]", "color:#d32f2f;", "Blocked");

      const icon = "<svg style='stroke:none;fill:currentColor!important' viewBox='0 0 24 24'><path d='M12.2 9L10.2 7H13C14.1 7 15 7.9 15 9V11.8L13 9.8V9H12.2M23 9V7H19C17.9 7 17 7.9 17 9V11C17 12.1 17.9 13 19 13H21V15H18.2L20.2 17H21C22.1 17 23 16.1 23 15V13C23 11.9 22.1 11 21 11H19V9H23M22.1 21.5L20.8 22.8L14.4 16.4C14.1 16.7 13.6 17 13 17H9V10.9L7 8.9V17H5V13H3V17H1V9C1 7.9 1.9 7 3 7H5.1L1.1 3L2.4 1.7L22.1 21.5M5 9H3V11H5V9M13 14.9L11 12.9V15H13V14.9Z'/></svg>";
      const title = "Ad blocker detected!";
      const message = "<p>We have detected that you are using adblocking plugin in your browser.<br/>The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.</p>";

      // Lets create the popup
      const element = document.createElement("div");
      element.className = "popSc";
      element.innerHTML = "<div class='popBo'>" + icon + "<h2>" + title + "</h2><div class='popCo'>" + message + "</div></div>"
      document.body.appendChild(element);
    } else {
      // Ads are allowed;
      console.log("%c[ADS]", "color:#43a047;", "Allowed");
    }
  });
  document.removeEventListener("DOMContentLoaded", antiAdBlockerHandler);
};

if (document.readyState === "complete" || document.readyState !== "loading") {
  antiAdBlockerHandler();
} else {
  document.addEventListener("DOMContentLoaded", antiAdBlockerHandler);
}
/*]]>*/</script>

CONCLUSION

In this post I have made a tutorial about How to Install an Anti-Adblock Script on Blogger Website. Which gives a beautiful look of your website. I hope you have liked it and please share with your friends and follow our blog for more.

If you face any problems in this code or have any questions so feel free to ask me in comments section or join our Telegram Group for discussion.

Our All Posts Are Protected By DMCA. So Don't Try To Copy Our Posts And Reproduction In Any Way Is Strictly Prohibited! Or else Legal Actions Will Be Taken.

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.