Greasy Fork

Greasy Fork is available in English.

YouTubeAdSolutions

结合低音增强、1000%音量、智能广告拦截加速、Picture-in-Picture和Shorts支持

当前为 2026-01-09 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
_XPK_
评分
0 0 0
版本
1.6
创建于
2026-01-04
更新于
2026-01-09
大小
31.1 KB
许可证
MIT
适用于

🚀 YouTubeAdSolutions - Ultimate Audio & Ad Tool

Bass Boost • 1000% Volume • Smart Ad Skip • Picture-in-Picture • Miniplayer • Download Button • Shorts Support


⚡ **Smart Ad Speedup**: 12x speed after 2s (Shorts: 2x), auto-mute, Skip-Button
🔊 **1000% Volume Boost**: Toggle-Button → Yellow Slider (1x-10x Gain)
🎸 **Bass Boost**: Toggle-Button → Orange Slider (0-30dB Low-Shelf)
📱 **Shorts Support**: Rotating Volume-Slider
🎨 **Clean UI**: 3 Toggle-Buttons with Live-Labels
⬇️ **Video Download Button** (Y2Mate, Cobalt, SaveFrom, Loader.to, and more)
🔥 **Premium YouTube Logo** (SVG Play-Button)
🖼️ **Picture-in-Picture**: Button + "P" hotkey
📺 ++Miniplayer**: Button + "I" hotkey
⏸️ **Smart Anti-Pause**: Auto-resume background/popups

## 🎮 How to Use
**Click** the 3 colorful buttons (right of time display):
* 🔴 Red → **Volume** slider appears (0-100%)
* 🟡 Yellow → **Booster** slider (1x-10x)
* 🟠 Orange → **Bass** slider (0-30dB)

🖼️ Picture-in-Picture (PiP):
* Click PiP Button (right controls) or press **P** key
* Toggle anytime – enter/exit PiP instantly
* Resize freely – Drag corners to enlarge/shrink window
* Move anywhere – Drag PiP to any screen position

📺 Miniplayer Mode:
* Click Miniplayer Button (right controls) or press I key
+ Multitask easily – Watch while browsing other YouTube pages
+ Stay on site – The video stays pinned to the bottom-right corner
+ Seamless control – Play, pause, or skip directly from the small window

Feel free to use, modify, share or even steal this code.


📋 Changelog

Version 1.6
📥 Multi-Source Downloader: A complete overhaul of the downloading system. Replaced the single-link button with a floating multi-source dropdown menu featuring 7 premium services (Y2Mate, Cobalt, SaveFrom, Loader.to, and more).
🧭 Smart Position Engine: The download menu now uses a dynamic positioning logic (getBoundingClientRect). It automatically detects available screen space to flip the menu upward or downward, ensuring it never gets cut off by the player or window borders.
✨ Skip-Button Visualizer: Enhanced visual feedback for ad-blocking. The "Skip Ad" button now features a vibrant green glow effect and a reinforced border as soon as it becomes available.
🛡️ Anti-Detection Delay: To bypass YouTube's latest automated click-detection algorithms, the script now implements a strategic 3-second delay before auto-clicking the skip button on long-form ads.
🧼 CSS Refactoring: Replaced the legacy "Ghost-Click" JavaScript logic with a pure CSS z-index prioritization. This improves performance and eliminates input lag in the search bar.
🔗 UI Seamless Integration: The download button is now dynamically injected next to the native YouTube "Share" button, providing a native look and feel that adapts to the modern YouTube layout.

Version 1.5.2
👻 Ghost Click Technology: Introduced a new system that intelligently routes clicks through invisible YouTube overlays directly into the search bar. Search now works flawlessly even if blocked by hidden layers.
🛡️ Radical UI Protection: Drastically increased Z-Index (to 60,000) for the header and search box to guarantee they stay above all new ad-blocker detection layers.
🧠 Smarter Background Play: Refined "Anti-Pause" logic. It no longer forces auto-play when simply switching tabs (less intrusive), but still reliably blocks "Are you still there?" dialogs.
🧹 Banner Cleanup Fix: Resolved a critical CSS bug where visual banner ads (Home/Sidebar) could remain visible in the previous version.

Version 1.5.1
Critical Search Fix: Resolved the "Frozen Search Bar" issue where users couldn't click or type into the new YouTube search box.
Smart Click-Through: Added a mousedown listener to ensure clicks reach the search input even if hidden overlays are present.
Enhanced Z-Index Management: Forced the search container to the top layer (z-index: 9999) to prevent ad-placeholders from blocking interactions.
Improved Hotkey Logic: Refined isSearchField detection to support the latest YouTube component classes (yt-searchbox), preventing "P" (PiP) from triggering while searching.
Redundant Ad-Blocking: Updated CSS rules to clean up the 2026 homepage layout and remove empty ad slots.

Version 1.5
🖼️ Picture-in-Picture & Miniplayer: Added a dedicated PiP toggle button to the player bar and integrated YouTube Miniplayer support. The "P" hotkey now instantly triggers Picture-in-Picture mode.
⌨️ Smart Keyboard Logic: A complete overhaul of the hotkey system. The script now intelligently detects whether you are using hotkeys for video control or typing in the Search Bar (including the new ytSearchbox layout), ensuring no input conflicts.

🔧 Key Fixes
🔍 Searchbox Compatibility: Specifically optimized for the new YouTube design (ytSearchboxComponentInput). This ensures that typing in the search bar is never blocked or interrupted by the script's hotkeys.
⚡ Capture-Mode Processing: Implemented "Capture" event listeners to resolve conflicts with YouTube's internal scripts, making the search experience smooth and responsive.

Version 1.4
🖼️ Picture-in-Picture Button: New PiP toggle in right controls + "P" hotkey
⏸️ Smart Anti-Pause: Auto-resume on background/popups (ignores manual pauses)
🛡️ UI Dup-Protection: Prevents duplicate sliders on re-runs
🔧 Refined setupUI(): Splits audio controls (left) + PiP (right)

Version 1.3
🔥 Premium YouTube Logo: SVG Play-Button-Injection (replaces cyan color)
⬇️ Video Downloader: "Download" Button in Owner section (gotofreight.ca)
🛡️ Trusted Types Fix: CSP compatible (modern browsers)
🔧 Audio Leak Prevention: source.disconnect() + safe initAudio() Checks
🎵 beforeunload Cleanup: Closes AudioContext on tab close
🧹 Extended CSS: + ytd-rich-item-renderer + download-button-renderer
⚡ Robust Ad-Blocker: tp-yt-iron-overlay + Auto-Play after overlay removal

Version 1.2
🎨 New Toggle-UI: 3 compact buttons (red/yellow/orange) with SVG-Icons
✨ Click-to-Slider: Sliders + Live-Labels (e.g. "5.2x", "12dB") appear on click
🔧 Better Position: Controls now next to Time-Display (clean look)
🐛 Improved Styling: !important for logo color + Ad-Overlays
⚡ Optimized: Combined runChecks() for Ads + UI-Setup

Version 1.1
✨ New: Massive multilingual update (36+ languages supported).
🌍 Global: Optimized for worldwide indexing and visibility.
🛠️ Refined: Better description metadata for all major regions (Asia, Europe, Americas, Middle East).