DEV Community

DERFI
DERFI

Posted on

Unblockable Ad-Blocker with Tampermonkey

How to block ads when ad blocking is blocked?

Nowadays many blogs, news sites and online tools try to prevent you from entering with an ad-blocker enabled. But many of this sites don't do a very good job in detecting ad-blockers. Usually they just use a script that looks for common strings, objects, behaviours of the most popular ad-blockers.

So I just wrote a tiny Tampermonkey script that hides ads on specific websites that I am using often and who are using ad-block-detectors. You can easily add new configs to that script and make your favorite sites ad-free. For all other sites i still use one of the big browser ad-blockers so i don't need to write configs for the whole internet.

More here

Top comments (0)