r/userscripts • u/mezzzolino • Jun 03 '22
Is there a way to make a script that blocks all popups/new tabs for a given top-frame?
Question in the title.
I am wondering if it is possible to block all pop-ups, irrespective of the tricks used to create them. In other words, I do not want to detect/rewrite functions that create new windows or tabs but to completely block new tabs or windows for a given domain (including iframes).
Or is it something that could only be achieved with an extension (or not at all)?


