Wednesday, 9 June 2021

How to Install Anti-Adblock Using a Script on Blogspot

How to Install Anti-Adblock Using a Script on Blogspot
June 09, 2021

 


MIUSM-TECH.COM - Currently, the majority of internet users always install the AdBlock extension on their computers or cellphones. Because, they don't want any annoying ads while visiting blogs and websites.

Indeed, installing the AdBlock extension will give you a sense of comfort when browsing the internet. As for the blog manager, how can you get money if the ads don't appear. Allow...

One way to keep ads appearing is to install an Anti-AdBlock script on the blog. With this, a notification will appear so that visitors must disable AdBlocker first to be able to view the content of your blog or website.

In this post I will give tips on how to install Anti-Adblock on a blog so that visitors disable the AdBlock extension in their browser. So that you as a blog owner still earn income.

How to Install Anti-Adblock Script on Blogspot

Here are easy steps on how to install anti-adblock using a script on Blogspot.

Anti-AdBlock Script Code for Blogspot

First, please copy the anti-adblock script code below:

<style>#g207{position:fixed!important;position:absolute;top:0;top:expression ((t=document.documentElement.scrollTop?document.documentElement.scrollTop:document .body.scrollTop)+"px"); left:0;width:100%;height:100%;background-color:#fff;opacity:0.9;filter:alpha(opacity=90);display:block}#g207 p{opacity:1;filter:none;font:bold 16px Verdana,Arial,sans-serif;text-align:center;margin:20% 0}#g207 p a,#g207 p i{font-size:12px}#g207 ~ *{display:none}</style>
<noscript><i id=g207><p>Please enable JavaScript!<br />Harap aktifkan JavaScript!<br />S'il vous pla&icirc;t activer JavaScript!<br />Por favor,activa el JavaScript!<br /><a href="http://antiblock.org/">antiblock.org</a></p></i></noscript><script>(function(w,u){var d=w.document,z=typeof u;function g207(){function c(c,i){var e=d.createElement('i'),b=d.body,s=b.style,l=b.childNodes.length;if(typeof i!=z){e.setAttribute('id',i);s.margin=s.padding=0;s.height='100%';l=Math.floor(Math.random()*l)+1}e.innerHTML=c;b.insertBefore(e,b.childNodes[l-1])}function g(i,t){return !t?d.getElementById(i):d.getElementsByTagName(t)};function f(v){if(!g('g207')){c('<p>Harap nonaktifkan pemblokir iklan Anda!<br/>Situs ini didukung oleh iklan <br/> Nonaktifkan pemblokir iklan Anda untuk mendukung kami!!! </p>','g207')}};(function(){var a=['Adrectangle','PageLeaderAd','ad-column','advertising2','divAdBox','mochila-column-right-ad-300x250-1','searchAdSenseBox','ad','ads','adsense'],l=a.length,i,s='',e;for(i=0;i<l;i++){if(!g(a[i])){s+='<a id="'+a[i]+'"></a>'}}c(s);l=a.length;for(i=0;i<l;i++){e=g(a[i]);if(e.offsetParent==null||(w.getComputedStyle?d.defaultView.getComputedStyle(e,null).getPropertyValue('display'):e.currentStyle.display )=='none'){return f('#'+a[i])}}}());(function(){var t=g(0,'img'),a=['/adaffiliate_','/adops/ad','/adsales/ad','/adsby.','/adtest.','/ajax/ads/ad','/controller/ads/ad','/pageads/ad','/weather/ads/ad','-728x90-'],i;if(typeof t[0]!=z&&typeof t[0].src!=z){i=new Image();i.onload=function(){this.onload=z;this.onerror=function(){f(this.src)};this.src=t[0].src+'#'+a.join('')};i.src=t[0].src}}());(function(){var o={'https://pagead2.googlesyndication.com/pagead/show_ads.js':'google_ad_client','https://js.adscale.de/getads.js':'adscale_slot_id','https://get.mirando.de/mirando.js':'adPlaceId'},S=g(0,'script'),l=S.length-1,n,r,i,v,s;d.write=null;for(i=l;i>=0;--i){s=S[i];if(typeof o[s.src]!=z){n=d.createElement('script');n.type='text/javascript';n.src=s.src;v=o[s.src];w[v]=u;r=S[0];n.onload=n.onreadystatechange=function(){if(typeof w[v]==z&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){n.onload=n.onreadystatechange=null;r.parentNode.removeChild(n);w[v]=null}};r.parentNode.insertBefore(n,r);setTimeout(function(){if(w[v]!==null){f(n.src)}},2000);break}}}())}if(d.addEventListener){w.addEventListener('load',g207,false)}else{w.attachEvent('onload',g207)}})(window);</script>

Install Anti-AdBlock Script on Blog Widget

After that, you have to install the script above in the widget/gadget on your blog template. The method is as follows:

  • Login to Blogger.com dashboard .
  • Select the blog that we will add the anti-adblock script to.
  • Then go to: Layout > Add Gadget > select HTML/Javascript
  • Leave Widget Title blank
  • Paste the code you copied above in the Content column .
  • Save!

Now please try to open your blog in a browser that has the AdBlock extension installed, whether this method works or not. However, I make sure it works 100% because I have tried several times on several different blogs.

Now you are calm because the income on the blog will not be hindered by AdBlock. Although currently there are several popunder ad networks that can penetrate the AdBlock extension, I think the script above is very useful for blog owners.

A good visitor, of course, will happily disable AdBlock in the browser. Because they know that advertising on blogs is a source of income for the owners of the blogs or websites they visit.

Well, maybe I'll end the tutorial post on How to install Anti-Adblock using a script on Blogspot . If there is something you don't understand, don't hesitate to share it in the comments section below.
See you...

Share This :
SUBSCRIBE TO OUR NEWSLETTER

No comments: