A Chrome extension that automatically pauses YouTube videos when you switch applications or tabs, ensuring you never miss a moment.
- Automatically pauses YouTube videos when switching to a different application.
- Resumes playing the video when you return to the YouTube tab.
- Pauses YouTube videos when switching between Chrome tabs.
- Clone or download this repository.
- Open Chrome and go to
chrome://extensions/
. - Enable "Developer mode" using the toggle in the top right corner.
- Click on "Load unpacked" and select the directory where you downloaded/cloned this repository.
- Once the extension is installed, click the extension icon in the Chrome toolbar to enable it.
- Play any YouTube video.
- Switch to a different application or a different Chrome tab.
- The YouTube video will automatically pause.
- Switch back to the YouTube tab or Chrome window to resume playing the video.
- The extension listens for window focus changes and tab activation events.
- When the Chrome window loses focus or you switch to a different tab, the extension pauses the YouTube video.
- When you return to the Chrome window or the YouTube tab, the extension resumes the video playback.
Contributions are welcome! Please fork the repository and create a pull request with your changes.