Ultra Popup Blocker v2

1Tdd
2025-06-26T14:07:12Z

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

Ultra Popup Blocker

A strict, lightweight, no-nonsense popup blocker

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.

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 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