Greasy Fork 还支持 简体中文。

Ultra Popup Blocker v2

A smart popup blocker with strict mode and advanced redirect protection.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Tekijä
1Tdd
Päivittäiset asennukset
2
Asennuskerrat
350
Arvostelut
0 1 0
Versio
2.1
Luotu
26.6.2025
Päivitetty
25.2.2026
Size
39,6 kt
Yhteensopivuus
Yhteensopiva selaimen Firefox kanssa Yhteensopiva selaimen Chrome kanssa
Lisenssi
MIT
Käytössä
Kaikki sivustot

UPB Logo

Ultra Popup Blocker

A strict, lightweight, no-nonsense popup blocker

Version License

Ultra Popup Blocker (UPB) is a userscript that stops popups, redirects, and background tabs dead in their tracks. It runs silently, intercepts window.open calls, and catches sneaky background links before they execute, giving you total control over what opens.

Install UPB     Report an Issue


What it does

A Clean UI

The interface stays out of your way and is built with a lightweight, monospace terminal aesthetic.

  • Action Bar: Appears at the bottom of the screen only when a popup is intercepted.
  • Config Menu: A basic dashboard (accessible via your script manager) to let you manage what sites are allowed and denied.

UPB UI Preview

Blocking Mechanics

  • Proxy Object: UPB uses a custom proxy to absorb detection scripts. When a site tries to verify if its popup was blocked, the proxy tricks the site into thinking the popup opened successfully, so the site doesn't break.
  • Strict Mode: A simple toggle to block all popups across all sites without asking.
  • Element Patching: Watches the DOM and instantly strips malicious iframe attributes and sneaky <meta http-equiv="refresh"> tags as soon as they load.
  • Event Trapping: Hooks into programmatic submit events, silent target="_blank" link clicks, and simulated middle-clicks.
  • Redirection Prevention: Monitors beforeunload and location.assign/replace to stop websites from retaliating by redirecting your current tab if their popup fails to open.
  • Iframe Hooking: Replaces contentWindow.open natively to ensure nested frames cannot bypass the script.

Installation

You will need a userscript manager extension installed in your browser.

  • Desktop (Chrome, Firefox, Edge): Tampermonkey or Violentmonkey.
  • Android: Firefox Nightly or Kiwi Browser with Tampermonkey.
  • iOS (iPhone/iPad): "Userscripts" extension for Safari.

Once you have a manager installed, click here to install the script.


Usage

When a popup is blocked, a bar will appear at the bottom of your screen for 15 seconds. If you ignore it, the popup is discarded.

  • [ Allow ]: Opens the blocked popup this one time.
  • [ Trust ]: Whitelists the domain. Popups from this site will always be allowed.
  • [ Block ]: Adds the domain to the deny list. Future attempts will be blocked silently.
  • [ Settings ]: Opens the configuration menu to toggle Strict Mode and edit your domain lists.

Note that some common sites (like standard OAuth login screens or payment processors) are whitelisted by default to ensure you can still easily log in to your normal sites.


Credits

  • Developer: 1Tdd - Rewrite, logic patching, and UI.
  • Original Script: Eskander - Author of the original Popup Blocker Script.

Distributed under the MIT License