A high-performance, lightweight Userscript designed to instantly fast-forward, mute, and dismiss YouTube advertisements the millisecond they touch your browser DOM.
Unlike traditional adblockers that intercept network requests, YouTube God Mode manipulates the HTML5 video engine natively. It forces ads to play at 16x speed, silences their audio, snaps straight to the final split-second, and clicks the skip button for youβeffectively making ads invisible while rendering them "watched" to YouTube's backend tracking.
- β‘ Quantum Speed Execution: Accelerates unskippable pre-roll and mid-roll ads to 16x speed (the absolute browser limits).
- π― Instant Target Skipping: Automatically forces the playback timeline to the last
0.2seconds of the ad structure. - π Intelligent Smart Mute: Silences ad volume instantly and perfectly restores your exact volume and playback speed settings once the actual video resumes.
- π₯ Total DOM Deletion: Obliterates banner overlays, promoted sidebar items, and tracking placeholders directly from the webpage.
- ποΈ On-Screen Toggle Switch: Includes an interactive floating toggle button (π₯ / β) to easily activate or pause the automation script dynamically.
- π Battery & CPU Optimized: Consolidated down to a single, event-driven loop cycle alongside a
MutationObserverto maximize speed while eliminating resource lag.
To run this script, you need a browser extension that handles custom user scripts. Choose one of the options below:
- Tampermonkey (Highly Recommended)
- Violentmonkey
- Open your extension's dashboard and click Create a new script.
- Erase any default template code provided.
- Copy the entire source code from
youtube-god-mode.user.jsin this repository. - Paste the code into your script editor and hit Save (
Ctrl + SorCmd + S).
The script utilizes a dual-engine architecture to maintain dominance over the webpage layout:
- The Event Observer Engine: A
MutationObserverkeeps watch on the page structural hierarchy. If any node class alterations match ad characteristics, the execution sequence initiates instantly. - The HTML5 Player Core Controller: Instead of altering network packets (which triggers anti-adblock warning flags), the code controls the native media engine variables (
video.playbackRate,video.currentTime,video.muted).
YouTube updates its native frontend player configuration regularly to combat automated elements. If a change occurs:
- The script may occasionally encounter an infinite loading spinner if YouTube blocks variable acceleration overrides.
- Class elements (
.ad-showing,.ytp-ad-skip-button-modern) may alter over time.
Contributions, pull requests, and structural element selector patches are always welcome to keep this script robust against changes!
Distributed under the MIT License. See LICENSE for more information.