Skip to content

Instantly share code, notes, and snippets.

@GarrettS
Last active August 27, 2015 17:56
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 GarrettS/c7bf3f49e9ce43f6bd25 to your computer and use it in GitHub Desktop.
Save GarrettS/c7bf3f49e9ce43f6bd25 to your computer and use it in GitHub Desktop.
Bookmarklet Variable Speed for YouTube
javascript:var gSpeedControl = (function(v,i,n,t){ n.insertBefore(i, n.firstChild);i.type="range";i.min=.3;setTimeout(function(){i.max=i.value=1;i.oninput();},1); i.step=.05;t=i.nextSibling;i.oninput=function(){t.data=(100*(v.playbackRate=i.value)|0)+"%"};return i})(document.querySelector("video"), document.createElement("input"), document.getElementById("watch-header"))
@GarrettS
Copy link
Author

I. Add the bookmarklet:

  1. Copy code to clipboard
  2. Create a new bookmark on the bookmarks toolbar.
    a. Name: "YouTube Speed"
    b. Location: (paste code)

II. Use the bookmarklet.

  1. Go to youtube.com and select any video.
  2. Click the bookmark you added to the bookmarks toolbar
  3. Adjust the speed as necessary.

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