You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 1, 2026. It is now read-only.
If the UI doesn't support it, you can enable Picture-in-Picture mode using a bookmarklet
VanillaJS to support all the things
javascript:(functionbookmarklet(target){pictureInPicture(target);functionpictureInPicture(baseElement){try{trySetPictureInPicture(baseElement);}catch(err){alert('ERROR: '+err.message);}}functiontrySetPictureInPicture(baseElement){constvideo=tryFindVideo(baseElement);assertFunctionAvailable(video);video.webkitSetPresentationMode('picture-in-picture');}functiontryFindVideo(baseElement){constvideos=findVideoTags(baseElement);assertOneVideoFound(videos);returnvideos[0];}functionfindVideoTags(baseElement){returnbaseElement.getElementsByTagName('video');}functionassertOneVideoFound(nodeList){if(nodeList&&nodeList.length===1){return;}thrownewError('Expected one <video> tag but found '+nodeList.length+' in document.');}functionassertFunctionAvailable(element){if(typeofelement.webkitSetPresentationMode!=='function'){thrownewError('Expected <video> to support the "webkitSetPresentationMode" method');}}})(document);
About
JavaScript bookmarklet to view a <video> in Picture-in-Picture