Automatically enables PiP when a user switches for a tab to another tab with a video playing.
It also automatically disables PiP when a user switches back to the tab with the video playing.
demo.mp4
- Download the latest release from here
- Unzip the file
- Open the Extension Management page by navigating to
chrome://extensions
. - Enable Developer Mode by clicking the toggle switch next to Developer mode.
- Click the LOAD UNPACKED button and select the extension
src
directory.
- Open a video in a tab (ensure that the video is playing)
- Switch to another tab
Tested Sites
- Fork this repository
- Clone the forked repository
- Make changes
- Create a pull request
- Chrome PiP Extension - Forked PiP code (I was lazy to code it from scratch lol)
- PiP Documentation - Used for PiP documentation