How can I completely block all pop-ups in my browser?

May 12, 2025 5 answers
Asked by puddle_jumper
I've noticed that while most browsers have pop-up blockers, they still let some pop-ups through when they think I triggered them myself. This can be super annoying, especially when clicking a button causes ads to open in new windows. Is there a way to completely stop all pop-ups, regardless of whether I've clicked anything or not?

Answers

!unmute yourself
If you're comfortable with some coding, you can disable the window.open function in the console with `window.open = console.log`. This effectively prevents any pop-ups from appearing.
Reply to this answer
gel_lane3
If you're looking for a browser with a strong built-in blocker, you should definitely check out Brave. It does a fantastic job at blocking ads and pop-ups.
Reply to this answer
next available slot
Just a heads up, completely blocking all pop-ups might prevent certain features from working, like OAuth logins where you sign in with Google or Facebook.
Reply to this answer
!one small correction
You could try using UBlock Origin. Thereโ€™s an option called 'Click to block all popups on this site' that works really well on those tricky sites. Are you already using UBO?
Reply to this answer
!500 millisecond lag
If youโ€™re on a PC or laptop, consider setting up a private DNS like AdGuard. This can block almost everything, including most YouTube video ads. There's also Firefox with uBlock Origin for mobile users.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions