Answer the question
In order to leave comments, you need to log in
How to make a wait timer when adblock is enabled?
Hello.
Suppose there is a button for downloading a file: <a href="link_to_file" class="load">Скачать</a>
And there is a block with adsense ads: <div class="adsbygoogle"></div>
How to make it so that if the adsense block is not displayed, then the button is replaced with another one, with a timer, for example:
<a href="no_link" class="dontblock">Пожалуйста, отключите адблок или подождите <span class="timer">60</span>секунд.</a>
Answer the question
In order to leave comments, you need to log in
I did something like this for myself: after a short time, I checked the size of the container for advertising. If not loaded, the size remains small, so hello to AdBlock.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question