A lightweight, seamless Google Chrome extension that automatically manages YouTube playback based on your tab focus. It automatically pauses active YouTube videos the moment you switch to another tab or minimize your browser, and instantly resumes playback when you switch back.
Never miss a moment of your favorite podcasts, tutorials, or music videos while multitasking!
You can install the extension directly from the official store listing:
π YouTube Pause on Tab Switch on Chrome Web Store
To run this extension locally or test custom modifications:
git clone https://github.com/fineanmol/YouTube-Pause-on-Tab-Switch.git
cd YouTube-Pause-on-Tab-Switch
Open Extensions Page:
Open Google Chrome and navigate to chrome://extensions/ by typing it in the address bar.
Enable Developer Mode: Toggle the Developer mode switch in the top-right corner of the page.
Youtube-Pause-Extension directory containing the manifest.json file.The extension is powered by three main components:
background.js):
content.js):
popup.html / popup.js):
chrome.storage.local.YouTube-Pause-Extension/
βββ manifest.json # Metadata, permissions, and popup settings
βββ background.js # Background service worker coordinating state and logic
βββ content.js # Injected content script interfacing with YouTube player
βββ popup.html # Beautiful HTML settings panel UI
βββ popup.js # JavaScript backing the settings panel
βββ LICENSE # Open-source MIT License
βββ README.md # Documentation and overview
βββ images/ # Extension logo icons
βββ icon16.png
βββ icon48.png
βββ icon128.png
This extension is built with a strict privacy-first architecture:
Contributions make the open-source community an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
git checkout -b feature/AmazingFeature).git commit -m 'Add some AmazingFeature').git push origin feature/AmazingFeature).Distributed under the MIT License. See LICENSE for more information.