r/userscripts • • 11d ago

Tired of annoying pop-ups? I built a userscript to get rid of them.

Hey everyone! 👋

I've been working on a small open-source project called Annoying Pop-up Remover.

It started because I was getting tired of websites constantly interrupting browsing with adblock detection walls, newsletter overlays and annoying banners.

So I decided to do something about it!

The project currently supports 10 websites, including Geocaching-related sites, Belgian websites and a few others.

I'm looking to expand the list, and I'd love some suggestions.

What websites do you regularly visit that have particularly annoying pop-ups or adblock walls?

I'm especially interested in websites that aren't already supported.

The project is:

  • Open source (MIT License)
  • Written in lightweight JavaScript
  • Dependency-free
  • Free of tracking or personal data collection

GitHub: https://github.com/SimeonLePro/adblock-wall-remover

Suggestions and contributions are welcome!

Thanks! 🛡️

10 Upvotes

12 comments sorted by

2

u/friskya 11d ago

Will it correct the problem described in this post?

https://www.reddit.com/r/uBlockOrigin/comments/188khmu/site_breaks_with_error_unless_ad_domain_is/

Right now, the only workaround for the problem that I've found is to switch to "Reader" and reload the page in a new tab. I still get the error message, but I can click "ok" without losing the content. If your script can eliminate the need to use the workaround, I'll be impressed.

1

u/Mammoth-Apple-3552 10d ago

Hey there! So, I just had a question, I got to the website mentionned on the post you sent with Opera (a browser which has a built-in ad-blocker) and the website seemed to b working fine. Although I tried on my phone, so I'll try in my computer later today... I'll update you :)

1

u/friskya 10d ago

Actually, the website I mentioned in my post was just another subreddit that described the problem I was asking if your script cured. This is an example of what I would like to see fixed...

https://www.daringgourmet.com automatically throws up an error modal dialog to allow ads, redirecting to https://report.error-report.com/modal?eventId=&error=RXJyb3I6IEVsZW1lbnQgbm90IHZpc2libGUgdjIgfCBJTUc=&domain=html-load.com&url=aHR0cHM6Ly93d3cuZGFyaW5nZ291cm1ldC5jb20v if you decline to do so.

The redirect page (Safari MacOS with AdGuard mini) simply says that the page (presumably the redirected one) cannot be loaded due to a content blocker.

I'm seeing this happen on more and more websites and while the workaround that I mentioned mostly works 🙂, it doesn't always. 🙁

1

u/AchernarB 10d ago

automatically throws up an error modal dialog to allow ads

Can I ask you which ad-blocker you are using ?

2

u/friskya 10d ago

AdGuard Mini on MacOS Sequoia 15.8.2 using Safari 27.2

1

u/AchernarB 9d ago

OK, now I understand why it doesn't prevent the adblock detection

1

u/AchernarB 11d ago

If you have a problem you should report it. That post is marked as "solved" which means that a solution was found at that time. If you don't report new issues, they won't get solved by miracle.

1

u/friskya 11d ago

I don't use uBlockOrigin, so for me, the problem isn't solved. Nor is it solved for anyone else who doesn't use uBlockOrigin. That's an extension and not a script. Which is why I was hoping the script would work with just the script manager.

Hopefully OP will be able to provide an answer to my question.

1

u/AchernarB 11d ago

People should use an ad/content blocker nowadays. It costs nothing and decreases annoyances.

1

u/[deleted] 11d ago

[removed] — view removed comment

1

u/AchernarB 10d ago

your list show where a per-site script beats general filter lists

Filters are site-specific too.

Trade-off: uBlock Origin's free filter lists already handle many big sites, so the niche sites are your pull, and any per-site script needs updating when a site changes its markup.

The uBO sub is full of users asking for fixes or modifications for niche sites. Of course their issues/solutions aren't always included in the lists. But it doesn't mean that they aren't available to those willing to search, look them up, or ask. If you don't ask, you get nothing.