A Chrome extension.Press and hold the corresponding shortcut key, then move the cursor to select the video on the page to open the picture-in-picture function.Inspired by Steven Lei's Spacing.js
- Use the yarn build command or clone this repository, open
chrome://extensions/
in Chrome, then open thedeveloper mode
in the upper right corner and load the unpackedextensions
in the directory extension. - In the page, click on this extension in the extension bar, if you see the page prompted extension start, then the extension started successfully.
- Hold down
Alt/Option(⌥)
and move the cursor, the element where the cursor rests will draw a border, if the border is green, press the P key again to start picture-in-picture mode.