Sorry, it's been forever since I last did it and can't find my code example.
The gist of it is that the ad blocker will block the ads.js file. So the code in that file will not run.
Another approach is to check the .offsetHeight property of your ad element onload. If it's 0, then that means the ad blocker set its css display to "none".
Sorry, it's been forever since I last did it and can't find my code example.
The gist of it is that the ad blocker will block the ads.js file. So the code in that file will not run.
Another approach is to check the .offsetHeight property of your ad element onload. If it's 0, then that means the ad blocker set its css display to "none".
Gotcha, that explains!