this post was submitted on 25 Oct 2023
2016 points (99.1% liked)

me_irl

5006 readers
67 users here now

Selfies for the soul.

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 6 points 11 months ago (1 children)

Not all ad blockers remove elements from web pages, and if they acted that predictably you could detect the ad blocker by detecting whether an expected element is hidden.

I have not looked through an ad blocker's code, but I don't believe it is that simple.

[–] autokludge 4 points 11 months ago

Looking at this blogpost for a wordpress blocking plugin, it basically is just adding a bunch of css classes commonly used by ads to a div and some workarounds to support ad blockers that work by blocking files.