Skip to content

Instantly share code, notes, and snippets.

@aessam
Created November 29, 2020 15:17
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 aessam/87c91776c73a81a172c429d8dfde3286 to your computer and use it in GitHub Desktop.
Save aessam/87c91776c73a81a172c429d8dfde3286 to your computer and use it in GitHub Desktop.
Control browser's video Speed (booklet)
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)()
javascript:%28function%28%29%20%7B%20function%20speedUp%28v%29%20%7B%20if%20%28%21v.paused%29%7Bv.playbackRate%20-%3D%200.2%3B%7D%20%7D%3B%20function%20fixVideos%28f%29%7BArray.prototype.forEach.call%28f.getElementsByTagName%28%22video%22%29%2CspeedUp%29%3BArray.prototype.forEach.call%28f.getElementsByTagName%28%22iframe%22%29%2CfixVideos%29%3B%7D%3BArray.prototype.forEach.call%28document.getElementsByTagName%28%22iframe%22%29%2CfixVideos%29%3BfixVideos%28document%29%3B%7D%29%28%29
javascript:%28function%28%29%20%7B%20function%20speedUp%28v%29%20%7B%20if%20%28%21v.paused%29%7Bv.playbackRate%20%2B%3D%200.5%3B%7D%20%7D%3B%20function%20fixVideos%28f%29%7BArray.prototype.forEach.call%28f.getElementsByTagName%28%22video%22%29%2CspeedUp%29%3BArray.prototype.forEach.call%28f.getElementsByTagName%28%22iframe%22%29%2CfixVideos%29%3B%7D%3BArray.prototype.forEach.call%28document.getElementsByTagName%28%22iframe%22%29%2CfixVideos%29%3BfixVideos%28document%29%3B%7D%29%28%29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment