Skip to content

Instantly share code, notes, and snippets.

@rakhmad
Forked from zats/↔️.js
Created February 17, 2018 00:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rakhmad/00420377bdf597ca970802591813b72f to your computer and use it in GitHub Desktop.
Save rakhmad/00420377bdf597ca970802591813b72f 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