您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Blocks only the popups while allowing normal operations on whitelisted sites.
当前为
This user script for Tampermonkey blocks all unwanted popups on websites unless they originate from a predefined list of whitelisted domains. It's designed to enhance your browsing experience by preventing intrusive popups while allowing necessary ones from trusted sources. This script is ideal for users who frequently encounter annoying popups but still require functionality from certain trusted sites.
window.alert
, window.confirm
, and window.prompt
to prevent their misuse for displaying unwanted content.Create a new script
.Ctrl+S
.whitelist
array within the script to include or remove domains based on your specific needs.To add a new domain to the whitelist, simply append it to the whitelist
array in the script. For example, to add example.com
, you would modify the array like this:
const whitelist = [
'500px.com',
'adobe.com',
// other domains
'example.com' // newly added domain
];
Make sure to regularly update and manage your whitelist to fit your browsing habits and security preferences.