Greasy Fork

Greasy Fork is available in English.

禁用YouTube“播放暂停,是否继续观看?”弹窗及播放延迟

自动禁用YouTube“播放暂停,是否继续观看?”弹窗以及初始播放延迟。

作者
koyasi777
日安装量
5
总安装量
9
评分
0 0 0
版本
1.0.0
创建于
2025-07-21
更新于
2025-07-21
大小
4.0 KB
许可证
MIT
适用于

Disable YouTube "Experiencing interruptions?" Popup and Playback Delay

📌 Overview

This userscript automatically disables the confirmation popup and a few seconds of playback delay that appear during the initial load of a new tab or page on YouTube. For example:

  • "Experiencing interruptions?" (Japanese: 「再生が中断されていますか?」)

No more interruptions or playback stalls when opening new tabs or loading YouTube pages.


🚀 Installation

  1. Install a userscript manager:
  2. Click below to install the script:
    👉 Install This Script

⚙️ How It Works

  • The script intercepts access to the ytInitialData property early in the page lifecycle
  • It overrides YouTube’s internal logic that schedules inactivity popups
  • Executed at document-start to prevent popup logic from initializing

🧪 Compatibility

  • ✅ YouTube desktop site (https://www.youtube.com/*)
  • ✅ Tested with latest Chrome and Firefox
  • ✅ Works with Tampermonkey and Violentmonkey

📜 License

MIT License
Free to use, modify, and redistribute. Use at your own risk.