YouTube - 阻止自动播放预览

在所有YouTube页面上阻止缩略图悬停预览(WebP和视频)。保留进度条和播放按钮。无需登录或权限,页面加载时运行。

当前为 2025-11-14 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
miebie.1412
评分
0 0 0
版本
1.2.0
创建于
2025-11-11
更新于
2025-11-14
大小
24.7 KB
许可证
MIT
适用于

This script blocks YouTube's thumbnail hover previews (animated WebP & video) while preserving progress bars, play buttons, and static thumbnails. Works on all pages: homepage, subscriptions, watch, search, channels, etc.

No login required – works instantly without any settings.
No permissions. Runs at document-start.

⚙️ Key features:

  • CSS hides moving thumbnails and preview elements
  • JS removes an_webp & video-preview sources, pauses videos
  • MutationObserver + interval ensures complete blocking

What's New (v1.2.0)

  • Fully block channel trailers (stop video + zero audio) – works even on subscribed channels
  • Hide & remove from DOM: ytd-channel-video-player-renderer, ytd-rich-shelf-renderer, hidden trailer videos
  • 100% audio kill: muted, volume=0, src='', blocks AudioContext.resume()
  • SPA navigation support: auto re-activate on URL change (no reload needed)
  • Performance boost: merged CSS, shared observer, auto-cleanup after 18s
  • Extended selectors: covers small channels, playlist previews, dynamic trailers

⚠️ Note:

  • Remember to enable Developer Mode in Extensions.
  • Enable Allow User Scripts in Extensions (if available), otherwise the script will not run.
  • On Safari: Use Violentmonkey (Tampermonkey not supported on macOS).

Install: Tampermonkey or Violentmonkey → Refresh YouTube.


Script chặn hiệu ứng xem trước khi hover thumbnail trên YouTube (ảnh động WebP & video), nhưng giữ nguyên thanh tiến độ, nút play và ảnh tĩnh. Chạy mọi trang: trang chủ, đăng ký, xem video, tìm kiếm, kênh...

Không cần đăng nhập – hoạt động ngay, không cần chỉnh cài đặt.
Không cần quyền. Chạy ngay khi tải trang (document-start).

⚙️ Tính năng chính:

  • CSS ẩn thumbnail động và overlay
  • JS loại bỏ nguồn an_webp & video-preview, dừng video
  • MutationObserver + kiểm tra định kỳ chặn triệt để

Cập nhật mới (v1.2.0)

  • Chặn hoàn toàn trailer kênh (dừng video + không còn âm thanh) – hoạt động cả khi đã đăng ký
  • Ẩn & xóa khỏi DOM: ytd-channel-video-player-renderer, ytd-rich-shelf-renderer, video ẩn
  • Triệt tiêu âm thanh 100%: muted, volume=0, src='', chặn AudioContext.resume()
  • Hỗ trợ chuyển trang SPA: tự động kích hoạt lại khi đổi URL (không cần reload)
  • Tối ưu hiệu suất: gộp CSS, observer chung, tự dọn dẹp sau 18s
  • Mở rộng selector: bao quát kênh nhỏ, playlist preview, trailer động

⚠️ Lưu ý:

  • Nhớ bật Chế độ nhà phát triển trong mục Tiện ích.
  • Bật Cho phép tập lệnh của người dùng trong mục Tiện ích (nếu có), nếu không bật sẽ không cho phép script chạy.
  • Với Safari: Dùng Violentmonkey (Tampermonkey không hỗ trợ trên macOS).

Cài đặt: Tampermonkey hoặc Violentmonkey → Refresh YouTube.


Result (cursor included) / Kết quả (có con trỏ): After