Email or username:

Password:

Forgot your password?
11 comments
crystal

@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?

Beko Pharm

@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: stefanbohacek.com/project/dete See it in action (or not) on 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: stefanbohacek.com/project/dete See it in action (or not) on SimPit.dev

Simon (a 🐮 in 🇳🇿)

@bekopharm I took your idea and turned it in to a module for the Silverstripe framework/CMS
github.com/Firesphere/silverst

🙇 Thanks!

Beko Pharm

@Firesphere it's not mine. I murder-copied it from @stefan 🙃

Good job!

Simon (a 🐮 in 🇳🇿)

@bekopharm @stefan Fair, but you introduced me to the idea... 😆 (And I'm ashamed I never thought of it myself before)

Go Up