-
-
Save NoahKamara/25ec4f4bee79d85682524e81e32b782d 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