YouTube Ad Auto-Skipper (VoidMuser)

Prioritize "Soft Skip" (Mute+Seek/Button), fallback to "Reload" with cooldown; uses MutationObserver; reduces detection risk. / 优先“软跳过”(按钮/静音+跳尾),失败时执行带冷却的“重载”;使用 MutationObserver + 兜底定时器;降低被风控概率。

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
VoidMuser
评分
0 0 0
版本
2025.11.23
创建于
2025-11-22
更新于
2025-11-23
大小
7.4 KB
许可证
MIT
适用于

1. Script Working Principle / 脚本工作原理

English: This script does not "hack" or "block" the ad data from loading (which is what traditional AdBlockers do and what YouTube detects easily). Instead, it acts like a super-fast human user.

  1. Visual Cleanup: It uses CSS to hide static banner ads (banners don't disappear, they just become invisible).
  2. Video Ad Handling (The "Soft Skip"):
    • Mute: It instantly mutes the audio so you don't hear the ad.
    • Seek/Speed Up: It attempts to jump the video progress bar directly to the end (or speeds it up by 16x), effectively ending the ad immediately.
    • Click: If a "Skip Ad" button appears, it auto-clicks it instantly.
  3. Safety: Since the ad technically "loaded" and "played" (even if for 0.1 seconds), YouTube's server often counts it as a view, making this method much safer and harder to detect than blocking the network request.

中文: 这个脚本不是通过“黑客手段”或“拦截网络请求”来阻止广告(这是传统拦截器的方法,容易被 YouTube 检测到)。相反,它更像是一个手速极快的用户

  1. 视觉清理: 它使用 CSS 样式将静态广告横幅隐藏(广告实际上还在加载,只是不可见了)。
  2. 视频广告处理(“软跳过”):
    • 静音: 它会立即将播放器静音,防止您听到广告声。
    • 跳尾/加速: 它尝试将视频进度条直接拖到最后(或者将播放速度调至 16 倍),从而瞬间结束广告。
    • 点击: 如果出现了“跳过广告”按钮,它会瞬间自动点击。
  3. 安全性: 因为广告在技术上确实“加载”并“播放”了(哪怕只有 0.1 秒),YouTube 服务器通常会认为广告已展示,因此这种方法比直接拦截网络请求要安全得多,也更难被检测和风控。