您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Eliminates popup ads from Twitter video players - Generic version
👋 Hey there, fellow Twitter (X) users!
Tired of annoying popups and unexpected redirects when you just want to watch a video on Twitter/X? You click on a video, expecting it to play, and suddenly you're whisked away to some external website you never intended to visit. It's a frustrating experience that ruins your browsing flow.
This userscript is your ultimate solution! It's designed to bring peace back to your video viewing by aggressively blocking those unwanted popups and promotional links that often accompany videos on Twitter/X.
The script employs a multi-layered defense strategy:
window.open
Interception: It overrides the browser's window.open
function to prevent any suspicious external URLs from opening.location.assign
Override: Blocks sneaky redirects that try to change the current page without using `window.open`.<a>
(link) tags, particularly those with "From " text (e.g., "From OnlyFans.com") or patterns commonly used by ad networks, even if they're hidden.You can verify it's working by opening your browser's developer console (usually F12) and looking for messages like "🚫 Blocked generic popup:", "🗑️ Neutered/Removed generic promo link:", or "🛡️ Blocked click on promo video area".
Enjoy an ad-free video experience on Twitter (X)! If you encounter any issues or new ad types that slip through, please report them, and I'll work to update the script.