Ultimate Popup Blocker

Configurable popup blocker that blocks all popup windows by default.

安装此脚本
作者推荐脚本

您可能也喜欢Youtube - Subtitle (PC Version)

安装此脚本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

作者
hacker09
日安装量
0
总安装量
1,092
评分
1 0 0
版本
2
创建于
2023-10-29
更新于
2023-10-29
大小
7.0 KB
许可证
暂无
适用于
所有网站


How to Install scripts? (Click here)


If you like my work, please consider supporting it! (Cryptos / Patreon / Ko-Fi / BuyMeACoffee https://cyber-sec0.github.io)

Ultimate Popup Blocker (or UPB for short) is a lightweight Popup Blocker that aims to block all popup windows by default, on a permission model while providing a clean Permission Manager page for easy configuration.



Why another popup blocker?
Built-in browser pop-up blockers block only the pop-ups that were created automatically via scripts on page load, etc. When you click on a button on the page, it won't block it. However, malicious websites can create JS code that will launch the popups whenever you click on any blank space on the page, for instance.

How does it work?
In JavaScript, functions are first-order citizens. It means you can store a function in a variable and pass it freely. You can also modify the native functions provided by the browser, like 'window.open'. Here, we override 'window.open' with the script implementation, which shows a prompt to open/close any pop-up windows.

Managing permissions
Use the permission manager provided with the Ultimate Popup Blocker to set which websites are trusted to open popups freely.