L
L
LYTK42020-11-02 22:42:51
Ad blocking
LYTK4, 2020-11-02 22:42:51

Anti Adblock how to do?

I did something like this:

function Check(){
        var element = document.getElementById(ad);
        if(!element) {
            alert('AdBlock обнаружен');
        } else {
            alert("Adblock'a нет");
        }
    }
    setTimeout(Check, 1000);

And it does not work from the word at all, it concludes immediately after the page is launched, what are the ways to detect AdBlock?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dollar, 2020-11-03
@dollar

Usually in games they don't ban cheaters who don't bother anyone (that is, no one complains about them). Do you know why? Yes, you guessed it, I guess.
On the subject, adblockers usually don't remove an element, but make it invisible (display:none).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question