跳到主要内容
Play YouTube Video In Background

Play YouTube Video In Background EN

Labinator · Firefox

Prevents YouTube and Vimeo from stopping Firefox from playing videos in the background. It is mainly useful for Android devices.

4.6/5 13 人评分 2.1千用户 v1.1.1当前版本

简介

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:

  • 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

  1. Visibility Override
    Intercepts visibility checks and always reports the page as active and visible.
  2. Event Suppression
    Prevents visibilitychange events from reaching the video player.
  3. MediaSession Integration (Mobile)
    Ensures playback remains active in the system media controls and notification shade.

🎮 How to Use

  1. Install the extension
  2. Open YouTube or Vimeo (desktop or mobile)
  3. Start a video
  4. Switch tabs or minimize Firefox

🎉 The video/audio will continue playing in the background.

✅ How to Verify It’s Working

  1. Play a video.
  2. Switch tabs or minimize Firefox.
  3. 💻 Desktop: The tab will show the “playing audio” 🔊 icon
  4. 📱 Android: Firefox’s media playback notification remains visible and audio continues

🧩 Troubleshooting

If playback still pauses:

  1. 🧩 Check extension status
  2. Visit about:addons and confirm it’s enabled
  3. 🌐 Verify supported sites
  4. Works only on YouTube and Vimeo
  5. 🔄 Reload the page
  6. Required after first install
  7. 🧪 Check the console
  8. Press F12 and look for extension errors
  9. 🦊 Firefox version
  10. 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 lacking wrappedJSObject support.
  • 🛑 Extension Conflicts
    Some ad blockers or privacy tools may interfere.

🔐 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

  • No data collection
  • No tracking or analytics
  • No external network requests
  • All logic runs locally in your browser

🧑‍💻 Support & Source

📜 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.

Play YouTube Video In Background 是做什么的

Play YouTube Video In Background 是一款面向 Firefox 的外观主题类扩展,主要用来更换浏览器配色、给网页加深色模式、调整界面观感。官方对它的介绍是:Prevents YouTube and Vimeo from stopping Firefox from playing videos in the background. It is mainly useful for Android devices.在Firefox 附加组件商店(AMO)上,它当前版本 1.1.1,评分 4.62(13 人评价),约 2,069 名用户。

适合什么人用

从功能定位看,Play YouTube Video In Background 更适合长时间对着屏幕、希望降低眼睛负担的用户。如果你平时只是偶尔遇到相关需求,用浏览器自带功能也能凑合;但如果这件事每天都发生,装一个专门处理它的扩展通常比手动操作省事得多。

怎么安装 Play YouTube Video In Background

  1. 打开Firefox 附加组件商店(AMO)上的官方页面;
  2. 点「添加到浏览器」并确认权限提示;
  3. 装好后在扩展列表里固定图标,方便随时开关。

本站只做索引与介绍,安装包来自官方商店。如果商店页面提示当前地区不可用,说明该扩展未在你所在区域上架。

常见问题

Play YouTube Video In Background 是免费的吗?

Play YouTube Video In Background 在Firefox 附加组件商店(AMO)免费提供下载。它是浏览器扩展,装上就能直接用,不需要注册账号。

Play YouTube Video In Background 安全吗?

它只申请了 0 项权限,范围比较克制,没有申请「读取所有网站数据」这种大权限。

Play YouTube Video In Background 支持哪些浏览器?

当前收录的版本来自Firefox 附加组件商店(AMO),适用于 Firefox。同一个扩展在其他商店可能有对应版本,但功能与版本号不一定相同。

怎么卸载 Play YouTube Video In Background?

在扩展管理页找到 Play YouTube Video In Background,点移除即可。它在本地保存的设置会一起清掉,不会残留数据。

权限清单 来自 manifest.json 原文

未解析到权限条目。

标签 点标签看同类扩展

同类工具

同样带「YouTube 视频」标签的扩展

查看全部 ›