Skip to content

Instantly share code, notes, and snippets.

@kaustavha
Last active January 30, 2024 22:29
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kaustavha/a477cc35de82068eb0869b674a92b27d to your computer and use it in GitHub Desktop.
Save kaustavha/a477cc35de82068eb0869b674a92b27d to your computer and use it in GitHub Desktop.
Increase playback speed on any video
document.querySelector('video').playbackRate = 1.5
  • Videos on any page using a video tag. Youtube, vimeo etc

  • (Right click/2 finger click on mac -> inspect element); on the video to reveal the <video></video> tag, otherwise you might get a var v = document.querySelector('video'); var t = prompt('Set the playback rate'); v.playbackRate = parseFloat(t) err.

  • Paste this into the console (go to console from the window that pops up from inspect element or cmd + option + i):

var v = document.querySelector('video'); 
var t = prompt('Set the playback rate'); 
v.playbackRate = parseFloat(t)
  • Enter a speed, e.g. 1.5 for 1.5x or 2 for 2x and enjoy.
@kaustavha
Copy link
Author

For places like FB with many video tags use this (will work everywhere):

document.querySelectorAll('video').forEach(v => v.playbackRate=2)

@rjitsu
Copy link

rjitsu commented Oct 27, 2021

btw the upper limit for Youtube seems to be 16x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment