Play YouTube Video In Background by Labinator
Prevents YouTube and Vimeo from stopping Firefox from playing videos in the background. It is mainly useful for Android devices.
Available on Firefox for Android™Available on Firefox for Android™
Extension Metadata
About this extension
A Firefox extension that prevents YouTube and Vimeo from pausing videos when the browser is in the background, minimized, or when switching tabs.
Especially useful on 📱 Android devices, where background playback is often restricted.
🎯 What This Extension Does
This add-on ensures videos keep playing even when the page loses focus. No more interruptions when you:
Perfect for 🎵 music, 🎙️ podcasts, 📚 lectures, and other audio-first content.
✨ Key Features
🛠️ How It Works
The extension uses a lightweight content script that overrides the
Page Visibility API.
🔧 Core Mechanisms
🎮 How to Use
🎉 The video/audio will continue playing in the background.
✅ How to Verify It’s Working
🧩 Troubleshooting
If playback still pauses:
⚠️ Known Limitations
🔐 Permissions & Privacy
Required Permissions:
These permissions are strictly necessary to inject the content script that overrides the Page Visibility API on supported sites.
🔒 Privacy Guarantee
🧑💻 Support & Source
📜 Disclaimer
This extension is not affiliated with, endorsed by, or connected to YouTube, Vimeo, Google, or Mozilla.
It respects platform terms by:
Use responsibly and in accordance with the terms of supported platforms.
👨🏻🔬 Credits
Developed by Labinator.
Especially useful on 📱 Android devices, where background playback is often restricted.
🎯 What This Extension Does
This add-on ensures videos keep playing even when the page loses focus. No more interruptions when you:
- Switch tabs
- Minimize Firefox
- Lock your screen (mobile)
Perfect for 🎵 music, 🎙️ podcasts, 📚 lectures, and other audio-first content.
✨ Key Features
- 🎧 True Background Playback
Forces YouTube and Vimeo to continue playing even when the tab is inactive. - 👁️ Page Visibility API Override
Reports the page as always visible (document.hidden === false). - 📱 Mobile-First Support
Includes Android & iOS Firefox logic with MediaSession API integration. - 🔄 Automatic Video Recovery
Resumes playback if paused due to browser suspension or tab changes. - ⚡ Lightweight & Efficient
Minimal performance and battery impact.
🛠️ How It Works
The extension uses a lightweight content script that overrides the
Page Visibility API.
🔧 Core Mechanisms
- Visibility Override
Intercepts visibility checks and always reports the page as active and visible. - Event Suppression
Preventsvisibilitychangeevents from reaching the video player. - MediaSession Integration (Mobile)
Ensures playback remains active in the system media controls and notification shade.
🎮 How to Use
- Install the extension
- Open YouTube or Vimeo (desktop or mobile)
- Start a video
- Switch tabs or minimize Firefox
🎉 The video/audio will continue playing in the background.
✅ How to Verify It’s Working
- Play a video.
- Switch tabs or minimize Firefox.
- 💻 Desktop: The tab will show the “playing audio” 🔊 icon
- 📱 Android: Firefox’s media playback notification remains visible and audio continues
🧩 Troubleshooting
If playback still pauses:
- 🧩 Check extension status
- Visit
about:addonsand confirm it’s enabled - 🌐 Verify supported sites
- Works only on YouTube and Vimeo
- 🔄 Reload the page
- Required after first install
- 🧪 Check the console
- Press
F12and look for extension errors - 🦊 Firefox version
- Requires Firefox 147.0 or later
⚠️ Known Limitations
- 💻 Desktop YouTube
Background playback often works natively; this extension mainly benefits mobile users. - ⏸️ Timeout Prompts
Does not block YouTube’s “Are you still watching?” dialog. - 🧩 Firefox forks
May not work on forks lackingwrappedJSObjectsupport. - 🛑 Extension Conflicts
Some ad blockers or privacy tools may interfere.
🔐 Permissions & Privacy
Required Permissions:
*://*.youtube.com/**://*.youtube-nocookie.com/**://*.vimeo.com/*
These permissions are strictly necessary to inject the content script that overrides the Page Visibility API on supported sites.
🔒 Privacy Guarantee
- No data collection
- No tracking or analytics
- No external network requests
- All logic runs locally in your browser
🧑💻 Support & Source
- 🐞 Report Issues:
https://github.com/LabinatorSolutions/play-youtube-video-in-background/issues - 📦 Source Code:
https://github.com/LabinatorSolutions/play-youtube-video-in-background
📜 Disclaimer
This extension is not affiliated with, endorsed by, or connected to YouTube, Vimeo, Google, or Mozilla.
It respects platform terms by:
- ❌ Not downloading or modifying video content
- ✅ Only ensuring the browser reports an “active” page state
Use responsibly and in accordance with the terms of supported platforms.
👨🏻🔬 Credits
Developed by Labinator.
Rated 5 by 3 reviewers
Permissions and data
Required permissions:
- Access your data for sites in the youtube.com domain
- Access your data for sites in the youtube-nocookie.com domain
- Access your data for sites in the vimeo.com domain
Data collection:
- The developer says this extension doesn't require data collection.
More information
- Add-on Links
- Version
- 1.0.2
- Size
- 23.36 KB
- Last updated
- 9 days ago (Feb 3, 2026)
- Related Categories
- Version History
- Add to collection
The developer of this extension asks that you help support its continued development by making a small contribution.