Skip to content

Instantly share code, notes, and snippets.

@zats
Created February 11, 2018 22:00
Show Gist options
  • Star 21 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zats/5514229f33bc5a6d01322fdfe854c210 to your computer and use it in GitHub Desktop.
Save zats/5514229f33bc5a6d01322fdfe854c210 to your computer and use it in GitHub Desktop.
Bookmarklets for fullscreen, entering picture-in-picture, switching between fast and normal playback
javascript:document.getElementsByTagName('video')%5B0%5D.webkitEnterFullscreen()
javascript:(function()%7B%0A%20%20var%20video%20%3D%20document.getElementsByTagName('video')%5B0%5D%3B%0A%20%20video.playbackRate%20%3D%20video.playbackRate%20%3D%3D%201%20%3F%201.5%20%3A%201%3B%0A%20%20video.play()%3B%7D)()
javascript:(function()%7Bvar%20video%20%3D%20document.getElementsByTagName('video')%5B0%5D%3Bvideo.play()%3Bvideo.webkitSetPresentationMode(video.webkitPresentationMode%20%3D%3D%3D%20%22picture-in-picture%22%20%3F%20%22inline%22%20%3A%20%22picture-in-picture%22)%7D)()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment