Skip to main content

anti Adblock script into your blog

 Adblockers are addons or plugins for browsers like google chrome,mozilla firefox etc. which is used to block ads on your blogs or websites when some one visits and has adblocker installed.
Now a days millions of people are aware of adblockers and it means those millions of people if visit your blog, you earn nothing ,not even a penny.

For bloggers just add html widget and copy paste this script

Step: 1
<script type="text/javascript" src="advertisement.js"></script>

<script type="text/javascript">

if (document.getElementById("tester") != undefined)

{

    document.write('<p class="yes">No <strong>AdBlock Plus</strong> detected! Thanks for truly supporting our site.</p>');

}

else

{

    document.write('<p class="no">We\'ve detected that you\'re using <strong>AdBlock Plus</strong> or some other adblocking software. Please be aware that this is only contributing to the demise of the site. We need money to operate the site, and almost all of that comes from our online advertising. To read more about why you should disable ABP, please <a href="#">click here</a>.<!-- end .content --></p>');

}

</script>

Step:2
advertisement.js contents is


document.write('<div id="tester">an advertisement</div>');


save advertisement.js file  and call it in script(use Google drove or drop box)

Step: 3
add this to your Css file

#tester {

    display:none;

}
done!

Comments

Popular posts from this blog

Freenom ICANN registrar accreditation suspended for cybersquatting

OpenTLD, its registrar business, has been told it cannot accept new registrations or inbound transfers from July 8 to October 6 or until it provides ICANN with a full list of the names it squatted. I believe it’s the first time ICANN has suspended a registrar for this reason. ICANN has found that OpenTLD has engaged in a pattern and practice of trafficking in or use of domain names identical or confusingly similar to a trademark or service mark of a third party in which the Registered Name Holder has no rights or legitimate interest   To avoid termination, it has to provide ICANN with a list of all of its trademark infringing names, agree to transfer them to the mark owners or delete them, and bunch of other stuff. Source Letter

Will 5G cause a Digital divide in society ?

How 5G make huge difference in future and its negative impact on you.