Skip to content

Instantly share code, notes, and snippets.

@Eotones
Last active February 4, 2025 01:53
Show Gist options
  • Save Eotones/b6787065b1245354de86b13858520d58 to your computer and use it in GitHub Desktop.
Save Eotones/b6787065b1245354de86b13858520d58 to your computer and use it in GitHub Desktop.
Browser video Picture-in-Picture

Javascript

document.querySelector('video').requestPictureInPicture();

Browser Bookmark Script

javascript:(function(){document.querySelector('video').requestPictureInPicture();})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment