Created
April 5, 2021 16:05
-
-
Save MRuy/18821facecb7b609b2b48bfdc05ac890 to your computer and use it in GitHub Desktop.
Userscript: PiP everywhere
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name PictureInPicture | |
// @namespace pip | |
// @version 1.0.0 | |
// @description PiP everywhere | |
// @author You | |
// @include * | |
// @grant GM_registerMenuCommand | |
// ==/UserScript== | |
GM_registerMenuCommand('Video popout', pip); | |
function pip() { | |
document.querySelector('video').requestPictureInPicture(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment