@bekopharm @thomasfuchs Out of curiosity, how does it work? Does the ad blocker detect this message as an ad and block it or is it actually detecting it somehow?
Top-level
@bekopharm @thomasfuchs Out of curiosity, how does it work? Does the ad blocker detect this message as an ad and block it or is it actually detecting it somehow? 1 comment
|
@crystal @thomasfuchs it's mostly a bunch of css classes that some ad blockers would detect as advertisement and hide from the page automatically.
There is also a "css" file that is named after a well known ads js script. When this is blocked it's not hidden on the page.
I lifted the source for a Hugo page of mine from this project: https://stefanbohacek.com/project/detect-missing-adblocker-wordpress-plugin/#resources See it in action (or not) on https://SimPit.dev
It's not 100% perfect, detects no DNS block or so but hey… :D
It's author is @stefan
@crystal @thomasfuchs it's mostly a bunch of css classes that some ad blockers would detect as advertisement and hide from the page automatically.
There is also a "css" file that is named after a well known ads js script. When this is blocked it's not hidden on the page.
I lifted the source for a Hugo page of mine from this project: https://stefanbohacek.com/project/detect-missing-adblocker-wordpress-plugin/#resources See it in action (or not) on https://SimPit.dev