🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

YouTube Auto Reload When Video unavailable

Reloads YouTube when a video fails. Active tab only. May need to press F5 once on first visit.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

ავტორი
鄰家boy
დღიური ინსტალაციები
0
მთლიანი ინსტალაციები
22
რეიტინგი
0 0 0
ვერსია
2.6
შექმნილია
26.06.2025
განახლებულია
13.07.2025
Size
2,66 KB
ლიცენზია
MIT
გამოყენებს მათ

YouTube Auto Reload When Video Fails (Only in Active Tab)

Description:
Automatically reloads the YouTube page when a video fails to load or shows errors like "This content isn't available." Works only when the tab is active, to avoid unnecessary background reloads.
Sometimes it only takes one reload, other times it may take hundreds — but F5 always works eventually.
Inspired by this Google Support thread.

Detailed description:

This script monitors YouTube’s video playback status using a MutationObserver.
If the video gets stuck, fails to load, or shows the dreaded:

🔺 "Video unavailable. This content isn't available, try again later."

It will automatically reload the page — just like pressing F5 repeatedly — until the video loads.

💡 Sometimes only one reload is needed. Sometimes it takes hundreds. But it always works eventually.

🟢 Works only in the active tab to avoid unnecessary reloads while the page is in the background.

!!!Sometimes you need to press F5 once when you first open the video.

🔄 Infinite retry until success
🕵️ Real-time DOM monitoring
🔋 Background-safe by design
⚡ Lightweight and efficient

If you’re dealing with the bug mentioned in the Google Support thread [FIXED] Video Loading Issues https://support.google.com/youtube/thread/326467201/fixed-video-loading-issues?msgid=352130994 , this script was made for you.