您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
这个脚本可以移除所有广告,包括所有视频广告.简单高效的YouTube去广告脚本,拒绝花里胡哨.你可以尝试为常量cssSeletorArr定义元素.
当前为
## 简介
这是一个移除YouTube广告的脚本,轻量且高效,它能丝滑的移除界面广告和视频广告。
## 原理
- 使用style标签设置移除广告样式。
- 使用MutationObserver监听视频广告并将其移除。
- 对于拥有跳过按钮的视频广告,脚本会立即调用按钮跳过该广告。
- 对于没有跳过按钮的视频广告,脚本会在记录视频进度的前提下重载界面,规避广告。
## 效果
- 完全移除界面广告,且后续使用感知不到界面广告的存在。
- 对于拥有跳过按钮的视频广告,可以在毫秒单位内跳过。
- 对于没有跳过按钮的视频广告,该规避方法将广告时间从6-30秒缩短至2秒内。
## Introduction
This is a script that removes ads on YouTube, it's lightweight and efficient, capable of smoothly removing interface and video ads.
## Principles
- Use style tags to set the ad removal styles.
- Use MutationObserver to listen for video ads and remove them.
- For video ads with a skip button, the script will immediately call the button to skip the ad.
- For video ads without a skip button, the script will reload the interface based on recording the progress of the video to avoid the ad.
## Effects
- Interface ads are completely removed, and subsequent use cannot perceive the presence of interface ads.
- For video ads with a skip button, they can be skipped within milliseconds.
- For video ads without a skip button, this avoidance method reduces ad time from 6-30 seconds to within 2 seconds.
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址