Answer the question
In order to leave comments, you need to log in
How to determine that the visitor cuts ads?
There are messages like "Your ads are blocked" - how is it determined, in JS or PHP? What mechanism underlies the definition?
Answer the question
In order to leave comments, you need to log in
This is done in JS. I assume that by the phrase "cuts ads" you mean - removes or hides it from the page. If so, then with the help of JS we can check whether the blocks with ads are removed (or hidden) or not.
Like this:
if( $( '#blockID' ).length == 0
|| $( '#blockID' ).css( "display" ) == 'none'
|| parseFloat($( '#blockID' ).css( "opacity" )) != 1.0)
{
// Реклама удалена
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question