New:Socket for Asana Is Now Available.Learn more
Get Started

YT Preview Media Key Blocker

Package Overview
Versions
1
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

YT Preview Media Key Blocker

yt-preview-media-key-blocker

Prevents YouTube from hijacking system media keys (play/pause/next/prev) via the MediaSession API. Works with hover previews enabled.

Firefox Add-ons
Version
1.0.0
Version published
Created

Have you ever been listening to music in Spotify or Apple Music, then hovered over a YouTube video — and suddenly your keyboard's play/pause button stopped working for your music?

That happens because YouTube quietly takes control of your media keys the moment a video preview starts playing, even if you never actually opened that video. The only way to get your keys back is to close the YouTube tab completely, or turn off video previews entirely.

This extension fixes that. When you're just browsing YouTube — hovering over thumbnails, scrolling through results — your media keys stay with whatever app or tab was using them before. Open Spotify, keep browsing YouTube, and your keyboard controls will keep working for Spotify as expected.

Note: if you actually open a video in its own tab, your media keys will control that video as normal. The extension only prevents YouTube from grabbing them in the background while you're just browsing.

No settings, no permissions, nothing to configure — install and it works. Currently tested on Firefox 150.0.3 (MacBook M1).

Categories

web-development
tabs

FAQs

Package last updated on 24 May 2026

Related posts