this post was submitted on 17 Oct 2024
4 points (83.3% liked)
Fediverse stuff
0 readers
4 users here now
This is a magazine dedicated to posts about the Fediverse and things related to it. This is a MBin magazine, but you can follow it from Lemmy or Piefed as well. If you want to post specifically about Mbin feel free to post into [email protected]
Recommended magazines
Rules
- Please stay on topic, if it's off-topic please write [META] in the title. Please report off-topic posts if you see them.
- Try to avoid drama related posts, for this type of content you can go to [email protected]
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
There's a huge popup on this page that says adblock not detected and that I should install one to be safe.
Which is ironic because I'm obviously running Firefox with uBO, and they probably blocked your attempt at detect an adblocker. But if what you want to do is detect that the user is not running an adblocker, you should be testing for the positive, not the negative: your popup should only load if the code was able to do the most obnoxious, advertising-like tasks without obstruction.
@lambalicious Right, yes, that is how, in part, this works. If you look at the source code, the "ad" uses a bunch of classes that a typical ad-blocker would pick up on.
Also, the "popup" shouldn't take up much of the screen, just a bit of the space at the bottom. I will have to look into all this, thank you for reporting the issues!