Greasy Fork

Greasy Fork is available in English.

Ultra Popup Blocker v2

A sleek, modern popup blocker with an Apple-inspired glassmorphism UI and advanced redirect protection.

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
1Tdd
日安装量
6
总安装量
121
评分
0 1 0
版本
2.0.2
创建于
2025-06-26
更新于
2025-12-12
大小
33.1 KB
兼容性
与 Firefox 兼容 与 Chrome 兼容
许可证
MIT
适用于
所有网站
UPB Logo

Ultra Popup Blocker

The Universal Solution for a Cleaner Web

Version 2.0.2 MIT License Universal Platform

Ultra Popup Blocker (UPB) is a lightweight, high-performance userscript designed to neutralize modern popup techniques, redirects, and overlay advertisements. Built with a state-of-the-art interception engine, it operates silently in the background, protecting your browsing experience without breaking legitimate websites.


✨ Key Highlights

🎨 Apple-Inspired Glassmorphism UI

A stunning, blur-backed interface that feels native to modern operating systems. It adapts intelligently to your device:

  • Desktop: A sleek, unobtrusive notification bar.
  • Mobile: A touch-optimized control grid designed for thumbs.
Ultra Popup Blocker UI Preview
(The responsive interface adapting to user interaction)

🛡️ Advanced Security Core (v2.0)

  • The "Black Hole" Proxy: Uses a recursive FakeWindow proxy that absorbs detection attempts. It tricks anti-adblock scripts into thinking a popup opened successfully, preventing site breakage while keeping the popup blocked.
  • State-Caching Architecture: Domain status checks are now O(1) (instant). Zero lag, even on the heaviest web pages.
  • Strict Mode: New option to block ALL popups by default, providing maximum protection.
  • Input Shield: Protects settings UI from hostile websites that block keyboard events.

⚡ Intelligent Defense Layers

  1. Trap: Intercepts window.open, target="_blank", and simulated mouse events (including middle-click).
  2. Shield: Monitors beforeunload events to prevent sites from redirecting your current tab in retaliation for a blocked popup.
  3. Filter: Distinguishes between malicious popups and legitimate user actions (like download links).
  4. Configurable: Toggle notifications or enable Strict Mode directly from the settings.


📦 Installation

Step 1: Get a Userscript Manager

You need a browser extension to run this script.

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

Step 2: Install the Script

Click the install button above or visit the GitHub releases page.


⚙️ How to Use

UPB works out of the box. When a popup is blocked, you are in control:

Action Description
✅ Allow Once Opens the blocked popup just this one time. Useful for login windows.
💙 Trust Site Whitelists the domain. Popups will never be blocked here again.
❌ Block Site Adds the domain to the Deny List. Future attempts will be blocked silently.
⚙️ Config Opens the dashboard to manage your Allowed/Denied lists.
Pro Tip: On mobile devices, the inputs are optimized to prevent auto-correct and auto-capitalization, making domain entry frustration-free.


📜 Credits & Acknowledgments

This project is an evolution of the original concept, rebuilt for the modern web.

  • Lead Developer: 1Tdd - Core architecture rewrite, UI design, mobile optimization, and stealth systems.
  • Original Inspiration: Eskander - Author of the original Popup Blocker Script.


Distributed under the MIT License. Code is provided "as is" without warranty.

📂 GitHub Repository