max / Twitch Essentials: Auto-Close + Ad Block + Anti-Pause

安装步骤: 先安装脚本管理器,再点“安装”,最后打开脚本适用的网站。

用户脚本新手指南 Chrome Edge Firefox

发布时间:

版本: 4.3.0.1+15e82a3 更新于

摘要: Automatically closes "Back to Live" popups, blocks ads using VAFT technology (maintains quality!), and prevents pausing when switching tabs. All-in-one solution by DEMOTAPE.

版权: 2024, DEMOTAPE

许可证: MIT

反功能: 未说明

脚本来源与更新状态

以下数据来自原始来源,与本站收到的安装请求分开统计。

原始脚本: Twitch Essentials: Auto-Close + Ad Block + Anti-Pause

来源版本: 4.3.0

最近来源检查:

最近成功检查:

来源站日安装量
0
来源站总安装量
0
本站安装请求
0

本站收到的请求不代表用户已完成安装。

点击安装只表示本站收到安装请求,不代表安装已完成。 安装后无法使用?查看问题反馈与排查

Twitch Essentials: Auto-Close + Ad Block + Anti-Pause
Author: DEMOTAPE | Version: 3.0 | Updated: March 2026
📝 Description
The ultimate all-in-one toolkit for Twitch. Automatically closes the annoying "Back to Live" popup, blocks ads without breaking your stream (no black screens!), and prevents the player from pausing when you switch tabs. Lightweight, fast, and works in every language.
✨ Features
Table
Feature What It Does
🎯 Auto-Close Popups Instantly clicks "Back to Live" buttons in any language (English, Portuguese, Japanese, etc.)
🛡️ Smart Ad Block Removes ads surgically without reloading the player — no infinite loading loops or black screens
🔄 Background Playback Keeps stream playing when you switch tabs (overrides visibility API)
🧠 Intelligent Detection Uses text + icon analysis to avoid clicking wrong buttons (like "Create Clip")
⚡ Zero Lag ~15KB, no dependencies, activates only after stream loads
🔒 Safe & Stable Built-in cooldowns prevent spam and accidental interactions
🚀 How to Install

Install Tampermonkey extension (Chrome/Firefox/Edge)
Click "Create new script" and delete the default template
Paste the entire code
Press Ctrl+S to save
Done! Open any Twitch stream and enjoy uninterrupted viewing

🎯 How It Works
1. Popup Detection
Watches for the "Back to Live" overlay using MutationObserver, validates the button via keywords ("live", "back", "voltar", "戻る") + play icon, then clicks with a 3-second safety cooldown.
2. Ad Interception
Hooks into Twitch's Web Workers and intercepts M3U8 playlists. When stitched ad segments are detected, replaces them with empty 1-second frames. Activates 5 seconds after page load to ensure smooth startup.
3. Anti-Pause
Overrides document.visibilityState and document.hidden so the player thinks your tab is always active. Watch streams while working in other tabs without auto-pause.
⚙️ Configuration (Optional)
Edit the CONFIG section at the top of the script:
JavaScript
Copy

const CONFIG = {
DEBUG: false, // Console logs for troubleshooting
ENABLE_AD_BLOCK: true, // Toggle ad blocking on/off
ANTI_PAUSE: true, // Toggle background playback
CHECK_INTERVAL: 1000, // How often to check for popups (ms)
CLICK_COOLDOWN: 3000 // Delay between clicks (prevents spam)
};

🐛 Troubleshooting
Table
Problem Solution
Black screen on load Normal — AdBlock waits 5s for stream to initialize. Refresh if persists.
Still seeing ads Disable other Twitch ad blockers to avoid script conflicts.
Popup not closing Check if your language is supported (all major languages included).
Stream pauses on tab switch Ensure ANTI_PAUSE: true in config.
📜 License & Credits
MIT License — Free to use, modify, and share.
Created by DEMOTAPE | Report Issues | Source Code
Works with all Twitch channels. No account access required. 100% client-side.

评分: 0