Greasy Fork

Greasy Fork is available in English.

自动跳过YouTube广告

即时自动跳过YouTube广告,检测风险低。包括可定制选项、更新提醒、强大的错误管理和静音状态修复。

当前为 2025-05-21 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
Gurveer
评分
0 0 0
版本
8.0.3
创建于
2025-04-23
更新于
2025-05-21
大小
15.3 KB
兼容性
与 Firefox 兼容 与 Chrome 兼容 与 Opera 兼容 与 Safari 兼容 与 Edge 兼容
许可证
MIT
适用于

🚀 Instant YouTube Ad Skipper

A robust and lightweight UserScript designed to instantly bypass YouTube advertisements, delivering a seamless and uninterrupted viewing experience. This script intelligently removes video ads, banners, and popups while maintaining a low detection profile to ensure compatibility and reliability.

![YouTube Ad Skipper Icon](./assets/icons/youtube-ads-skipper.png)

✨ Key Features

- Instant Ad Skipping: Automatically skips video ads, countdown timers, and survey prompts as soon as they appear.
- Comprehensive Ad Blocking: Removes banner ads, sponsored content, and premium popups across YouTube platforms.
- Efficient Detection: Utilizes `MutationObserver` for real-time monitoring and swift ad removal.
- Anti-Detection Measures: Incorporates randomized actions to minimize detection by YouTube’s ad systems.
- Customizable Settings: Offers flexible configuration options to tailor the script to your preferences.
- Update Notifications: Alerts you when a new version is available to keep the script optimized.
- Robust Error Handling: Ensures reliable performance with built-in retry mechanisms and mute state restoration.

🛠️ Prerequisites

To use this script, you’ll need:
- A modern web browser:
- Firefox (highly recommended)
- Google Chrome
- Microsoft Edge
- Opera
- Safari
- A UserScript manager:
- [Tampermonkey](https://www.tampermonkey.net/) (preferred for its features and compatibility)
- [Greasemonkey](https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/) (Firefox only)

📥 Installation Guide

1. **Install a UserScript Manager**:
- Download and install [Tampermonkey](https://www.tampermonkey.net/) or [Greasemonkey](https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/) for your browser.
2. **Install the Script**:
- [Click here to install Instant YouTube Ad Skipper](https://raw.githubusercontent.com/gurr-i/browser-scripts/main/scripts/Auto-Skip-YouTube-Ads/AutoSkipYouTubeAds.js).
- Your UserScript manager will prompt you to confirm the installation. Accept to proceed.
3. **Verify Installation**:
- Ensure the script is enabled in your UserScript manager’s dashboard.
- Visit YouTube (`www.youtube.com`, `m.youtube.com`, or `music.youtube.com`) to test ad-skipping functionality.

⚙️ Configuration Options

Customize the script’s behavior by modifying the `config` object within the script. Below are the available settings:

```javascript
const config = {
debugMode: false, // Set to true to enable detailed console logs for troubleshooting
updateInterval: 24, // Hours between automatic update checks
maxSkipAttempts: 3, // Maximum retry attempts for skipping stubborn ads
aggressiveMode: true // Enable for enhanced ad removal (may increase detection risk)
};
```

To modify, open the script in your UserScript manager’s editor, adjust the values, and save.

🌐 Compatibility

Supported Browsers
- Mozilla Firefox (optimal performance)
- Google Chrome
- Microsoft Edge
- Opera
- Safari

Supported Platforms
- `www.youtube.com` (desktop)
- `m.youtube.com` (mobile)
- `music.youtube.com` (YouTube Music)

Exclusions
- `studio.youtube.com` (YouTube Studio is not affected to avoid interfering with creator tools)

🛠️ Troubleshooting Tips

- **Ads Still Appearing?**
- Confirm the script is enabled in your UserScript manager.
- Refresh the YouTube page or restart your browser.
- Ensure `aggressiveMode` is set to `true` for enhanced ad removal.
- **Conflicts with Other Extensions?**
- Temporarily disable other ad blockers or YouTube-related extensions to identify conflicts.
- **Update Issues?**
- Verify your UserScript manager is configured to allow automatic updates.
- Manually reinstall the script from the provided link if issues persist.
- **Script Not Working on Mobile?**
- Ensure your browser supports UserScripts (e.g., use Tampermonkey on mobile browsers like Firefox for Android).

For persistent issues, check the [GitHub Issues page](https://github.com/gurr-i/browser-scripts/issues) or open a new issue.

🤝 Contributing

We welcome contributions to improve the script! To contribute:
1. Fork the [repository](https://github.com/gurr-i/browser-scripts).
2. Create a new branch for your feature or bug fix (`git checkout -b feature/new-feature`).
3. Commit your changes and submit a pull request with a clear description.

Please follow the [Code of Conduct](https://github.com/gurr-i/browser-scripts/blob/main/CODE_OF_CONDUCT.md) and ensure your changes align with the script’s goals.

📜 Changelog

Version 8.0.3 (Latest)
- Improved ad detection for new YouTube ad formats
- Enhanced mute state restoration for seamless playback
- Optimized performance for mobile platforms

Version 8.0.2
- Initial public release
- Core ad-skipping functionality for videos and banners
- Basic configuration options introduced

For a full changelog, visit the [GitHub Releases page](https://github.com/gurr-i/browser-scripts/releases).

📄 License

This script is licensed under the [MIT License](https://opensource.org/licenses/MIT). You are free to use, modify, and distribute it as long as the license terms are followed.

👤 Author

Developed by Gurveer. Explore more projects at [github.com/gurr-i/browser-scripts](https://github.com/gurr-i/browser-scripts).

🙌 Support

If you find this script helpful, please:
- ⭐ Star the [repository](https://github.com/gurr-i/browser-scripts) to show your support!
- 📢 Share it with others who might benefit.
- 🐞 Report issues or suggest improvements by creating a [GitHub Issue](https://github.com/gurr-i/browser-scripts/issues).

Your feedback helps make this script better for everyone!