@thomasfuchs meanwhile two of mine…
Edith says: This is kinda blowing up and many ask how this is done.
See https://social.tchncs.de/@bekopharm/111082075749714822 for an explanation.
See https://stefanbohacek.com/project/detect-missing-adblocker-wordpress-plugin/#resources for project details.
@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?
@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
@bekopharm @thomasfuchs how do you do this?
@bekopharm @thomasfuchs Do you have a snippet for that?
@bekopharm I took your idea and turned it in to a module for the Silverstripe framework/CMS
https://github.com/Firesphere/silverstripe-adblockwarning/
@Firesphere it's not mine. I murder-copied it from @stefan
Good job!
@bekopharm @stefan Fair, but you introduced me to the idea...
@inderix thanks I guess?
@bekopharm @thomasfuchs much as I have a very small audience, I would like something like that.