In my experience, it's a game of cat and mouse. The ad blockers are always adapting to new services and snippets. It's best to code it yourself.
It can be as simple as creating a div that blocks your content, then creating a ads.js files that removes the div. Or making your content hidden with CSS and the ads.js file makes it visible
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".
In my experience, it's a game of cat and mouse. The ad blockers are always adapting to new services and snippets. It's best to code it yourself.
It can be as simple as creating a div that blocks your content, then creating a ads.js files that removes the div. Or making your content hidden with CSS and the ads.js file makes it visible
Sorry, not following the description here, but my research seems to agree with you regarding writing it myself.
Do you have any code examples you could share, it might help me understand what you explained above.
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!