Hi friends! Welcome to your WikiTechLibrary blog. So we have created a new category in this WIkitechlibrary Blog called Tool Scripts, yes you heard exactly that. Tricks also get articles. So this Tool Scripts, In the category I will tell about tools related to Blogger. So in this blog post today we are going to talk about Adblock Detector. What is Adblock Detector and what does it benefit. So we will talk about all these things below You will know in detail. So stay in this article and learn more in detail.


How you can Install Adblock Detector in Blogger

$ads={2}

What is an Adblock Detector

If you are a blogger then this article is especially for you. Because in this article I have told about Adblock Detector. First of all, you know what it is. So let me tell you that some people like to see different sites. And some sites have too much advertisement so that the reader has a lot of problems. To deal with this problem, the person uses Adblocker. By using this Adblocker stops any type of ads.


Because of the disadvantage of the site, Ads on their site get blocked for that particular person who has used Adblocker. According to me, if you want to keep your income, then you should install this Adblock Detector in your blog.


Follow These Steps to Install Adblock Detector in Blogger


Step 1- First you have to log in to your blogger's dashboard.


Step 2- Now click on the Theme section and click on Edit HTML.

$ads={2}

Step 3- Now you have to search </body> tag by pressing CTRL + F button.


Step 4- Now you will get a code below. Copy and paste this code above the </body> tag.


Code:

<style>

div[class^="ykwrp_"]{display:none}

.ykth-inner{font-family:"Open Sans","Roboto",Segoe UI,sans-serif;background:#FFF;position:fixed;width:40%;left:0;right:0;top:30%;margin:auto}

div[class^="ykwrp_"]:before,#ykth:before{content:"";position:fixed;background:#00000055;top:0;left:0;right:0;bottom:0;width:100%;height:100%}

.ykth-head{background:#de2b2b;color:#FFF;padding:20px}

.ykth-head>svg{float:left;margin:0 9px 0 0;animation:shake .82s cubic-bezier(.36,.07,.19,.97) 7;transform:translate3d(0,0,0);backface-visibility:hidden;perspective:1000px}

.ykth-head>i{position:absolute;top:16px;right:16px;cursor:pointer;line-height:13px;font-size:21px;font-weight:700;font-style:normal}

.ykth-head>b{font-size:16px;font-weight:700;text-transform:uppercase}

.ykth-head>p{margin:0 0 0 35px;font-size:14px}

.ykth-body{padding:20px;font-size:100%;line-height:1.7}

.ykth-body>p{margin:0 0 10px}

@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}

</style>

<div id="ykth"><div class="ykth-inner">

<div class='ykth-head'>

<svg style="width:30px;height:30px" viewBox="0 0 26 26"><path fill="#FFFFFF" 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"/></svg>

<b>Adblock Detect</b>

<p>We have detected that you are using adblock in your browser</p>

<i class="close" onclick="document.getElementById(ykrd1).style.display='none'">�-</i>

</div>

<div class='ykth-body'>

<p>Our website is made possible by displaying online advertisements to our visitors.</p>

<p>Please consider supporting us by disabling your ad blocker.</p>

</div>

<!-- Start Condition When JS Disable -->

<noscript>

<div class="ykth-body">

 <p>Javascript is disabled in your web browser.</p>

 <p>For full functionality of this site it is necessary to enable JavaScript. Here are the <a href="https://www.enable-javascript.com/" target="_blank"> instructions how to enable JavaScript in your web browser</a>.</p>

</div>

<style>#ykth{display:block;}.ykth-inner>.ykth-body{display:none;}.ykth-head>b,.ykth-head>p{font-size:0}.ykth-head>b:before{content:"Javascript Detected";font-size:16px}.ykth-head>p:before{content:"We have detected that you are disable javascript in your browser";font-size:14px}</style>

</noscript>

<!-- End Condition When JS Disable -->

</div></div>

<script>

//<![CDATA[

var ykrd1=Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);

var ykrd2=Math.random().toString(36).substring(2, 7);

var e=document.getElementById("ykth");e.setAttribute("id", ykrd1);e.classList.add("ykwrp_"+ykrd2);

  document.addEventListener('DOMContentLoaded', init, false);

function init(){

  adsBlocked(function(blocked){

    if(blocked){

    document.getElementById(ykrd1).style.display='block';

    } else {

      document.getElementById(ykrd1).style.display='none';

    }

  })

}

function adsBlocked(callback){

  var testURL = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'


  var myInit = {

    method: 'HEAD',

    mode: 'no-cors'

  };


  var myRequest = new Request(testURL, myInit);


  fetch(myRequest).then(function(response) {

    return response;

  }).then(function(response) {

    console.log(response);

    callback(false)

  }).catch(function(e){

    console.log(e)

    callback(true)

  });

}

//]]>

</script>


Step 5- Now after doing all this, you have to click on Save Theme.


Now your Adblock Detector has been successfully installed on your blog. Now you can be sure to run your site.

$ads={2}

Forgive me!

Because I am a Blogger Export. I do not know about WordPress. So I cannot tell how this Adblock Detector will be installed in WordPress.


Last word: How did you like this post. Please tell us by commenting below. And share this post as much as possible.


Focus Keywords: simple adblock notice,ad blocker notify,adblock recovery wordpress,adblock notify by bweb,advanced ads ad blocker,adback,how to get past adblock detection reddit,adblock detection blocker,ublock origin,kingpinbrowser,anti adblock code,adblock-notify-by-bweb,adunblocker,kill adblock wordpress,adblock plugins,block adblock detection reddit,list of sites that block adblock,tampermonkey anti adblock,adblock hanime,are you using adblock,ublock origin block adblock detection,anti adblock script for blogger,anti anti adblock firefox,anti adblock test,anti adblock 2020,blockadblock,viki adblock reddit

Post a Comment

Please do not enter any spam link in the comment box.

×