Minimal, hardened desktop wrapper for YouTube Music. Built with pure Rust, WebKitGTK 4.1 (Linux), and WebView2 (Windows).
- Multi-Layer Ad & Tracker Blocking:
- Layer A: Document-start DOM scriptlet that prunes ad metadata and intercepts/mocks telemetry endpoints (
log_event,api/stats/*) to return 200 OK locally in 0ms. - Layer B: Native WebKit Content Rule List / Brave pure-Rust matching engine that blocks DoubleClick, Google Analytics, Firebase, Sentry, and tracking pixels before network dispatch.
- Layer C: Background updater that securely refreshes rule lists every 48 hours over HTTPS with POSIX
0600atomic file writes. - Intelligent Ad Skipper: Automatically skips and mutes video ads while firmly holding track playback at
0:00until the ad clears, so you never lose the beginning of a song.
- Layer A: Document-start DOM scriptlet that prunes ad metadata and intercepts/mocks telemetry endpoints (
- GPU & Video Hardware Acceleration: Built-in hardware compositing and VA-API / NVDEC hardware video decoding offload.
- Full Desktop Integration: Linux MPRIS D-Bus (
org.mpris.MediaPlayer2.ytm_shell), Windows SMTC, System Tray icon with close-to-tray background playback, and single-instance window focusing. - Zero IPC Bridge Attack Surface: Remote web content has zero ability to execute local commands.
- Original Copyright-Free Branding: Custom-crafted Radiant Crimson Red icon suite.
| Category | Policy | Details |
|---|---|---|
| Data Collected | None (0%) | ytm-shell collects zero personal data, zero analytics, zero metrics, and zero crash reports. |
| Data Needed | Session Cookies | Stored strictly in a local, isolated browser cookie store on your device with POSIX 0700 permissions. Cookies are only sent to music.youtube.com and accounts.google.com. |
| Optional Data | None | No optional telemetry or cloud sync. |
| Telemetry Interception | Blocked & Mocked | Outbound tracking beacons and telemetry requests (log_event, qoe, atr, pagead) are blocked and answered locally with a dummy 200 OK response so no tracking data and the player never freezes. |
ytm-shell [FLAGS]| Flag | Description |
|---|---|
| (default) | Runs with permanent GPU hardware acceleration (Always) on Linux for zero-latency hover and playback. |
--disable-gpu |
Disables GPU acceleration (Never); forces software rasterization for headless VMs or systems with buggy graphics drivers. |
--minimized |
Launches the application directly hidden to the system tray without displaying the main window. |
--allow-unfiltered |
Security override flag (for debugging only). Bypasses fail-closed adblock filter enforcement. |
--uninstall |
Completely uninstalls ytm-shell, removes desktop launchers/icons, and purges all leftover user profiles, adblock rules, and caches. |
-h, --help |
Displays command-line help message with available flags. |
Physical multimedia keys on your keyboard (Play / Pause, Next Track, Previous Track) are natively supported out-of-the-box via Linux MPRIS D-Bus and Windows SMTC.
When hardware media keys are absent or grabbed exclusively by your window manager, the following global shortcuts are active:
| Shortcut | Action |
|---|---|
| Ctrl + Alt + Space | Play / Pause |
| Ctrl + Alt + → | Next Track |
| Ctrl + Alt + ← | Previous Track |
Installs the standalone release binary to ~/.local/bin, installs the desktop launcher, and registers the brand icons:
curl -sSL https://raw.githubusercontent.com/02bjk/ytm-shell/main/dist/install.sh | bashDownload ytm-shell-linux-x86_64.tar.gz from GitHub Releases:
tar -xzf ytm-shell-linux-x86_64.tar.gz
chmod +x ytm-shell
./ytm-shellIf your system does not already have WebKitGTK and GStreamer installed, install them using your package manager:
- Debian / Ubuntu / Linux Mint:
sudo apt install libwebkit2gtk-4.1-0 libgtk-3-0 libayatana-appindicator3-1 \ gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-gl gstreamer1.0-vaapi
- Arch Linux / Manjaro:
sudo pacman -S webkit2gtk-4.1 gtk3 libayatana-appindicator \ gst-plugins-good gst-plugins-bad gst-vaapi
- Fedora / RHEL:
sudo dnf install webkit2gtk4.1 gtk3 libayatana-appindicator \ gstreamer1-plugins-good gstreamer1-plugins-bad-free gstreamer1-vaapi
- Download
ytm-shell-setup-x64.exefrom GitHub Releases. - Run the installer. It will install the application to
C:\Program Files\YouTube Music, create Start Menu and Desktop shortcuts, and register an uninstaller in Windows Settings.
- Download
ytm-shell-windows-x64.zipfrom GitHub Releases. - Extract the archive anywhere and double-click
ytm-shell.exeto run immediately without installation.
- Dependencies: Requires Microsoft Edge WebView2 Runtime (pre-installed on Windows 10 and Windows 11).
ytm-shell provides full uninstallation tools that wipe all binaries, desktop integrations, shortcuts, and all leftover application data, cookies, adblocking rules, and caches leaving zero traces on your system.
Removes the binary, launchers, icons, and purges all profile directories and caches:
curl -sSL https://raw.githubusercontent.com/02bjk/ytm-shell/main/dist/uninstall.sh | bashIf installed via install.sh, you can run the uninstaller command directly:
ytm-shell-uninstallytm-shell --uninstall- Open Windows Settings (
Win + I) -> Apps -> Installed apps. - Locate YouTube Music and click Uninstall.
- The uninstaller terminates running instances, deletes
C:\Program Files\YouTube Music, cleans Start Menu & Desktop shortcuts, and completely purges all leftover user profiles, adblock rules, and WebView2 caches in%APPDATA%and%LOCALAPPDATA%.
ytm-shell.exe --uninstall# Clone the repository
git clone https://github.com/02bjk/ytm-shell.git
cd ytm-shell
# Run quality checks
cargo fmt --check
cargo clippy -- -D warnings
cargo test
# Compile optimized release binary
cargo build --releaseMIT License. See LICENSE for details.