This is a Chrome extension that pauses Youtube videos when losing the tab/window focus by sending events to the player. Resumes the playback once the Youtube tab/window is back in focus.
Also listens for computer lock events and when the video goes out of viewport (for example when reading comments below the video).
Features some useful keyboard shortcuts to control videos in the window.
From chrome web store
https://chrome.google.com/webstore/detail/pbehcnkdmffkllmlfjpblpjhflnafioo/
Manually
- Clone the repository
- Start chrome
- Go to chrome://extensions
- Enable developer mode
- Click on "Load unpacked"
- Select the cloned folder
- Youtube (obviously)
- Youtube Kids
- Vimeo
- Netflix
- ... More to come, please contribute! (also see TODO)
Please feel free to contribute with pull requests or by creating issues. In case the extension does not work, please also list all other extensions you have enabled as this might conflict with other extensions.
- Allow selecting video services