Skip to content

Instantly share code, notes, and snippets.

@caiangums
Last active September 11, 2019 21:36
Show Gist options
  • Save caiangums/f2e5a34c6f85d5e80c9b0c821398bfce to your computer and use it in GitHub Desktop.
Save caiangums/f2e5a34c6f85d5e80c9b0c821398bfce to your computer and use it in GitHub Desktop.
Play Videos/Songs faster or slower in one click in Chrome (No Extensions)
javascript:(function () {var speed = Number(prompt("Insert the desired Speed")); if (speed !== NaN) document.getElementsByTagName("video")[0].playbackRate = speed})();
javascript:(function () {document.getElementsByTagName("video")[0].playbackRate = 1;})();

How To

Chrome has an amazing feature that allows you excecute a JS funciton as one of your bookmarks. Someday, when I was watching an YouTube video and wanted to play faster than 2x (podcast video related), I can't. So I created those two scripts and passed them as bookmarks saving in my bookmarks bar.

Now, whenever I want to play a video faster than 2x, I can and I can pick speed or return to normal speed.

Disclaimer: Use it with moderation. I just go for 3x or 4x speed.

Steps

  1. Ask for create a bookmark (cmd+D in Mac)
  2. If you don't see an URL input, click on More..., paste the code from drift.js into URL and give it a name
  3. (optional) If you want to have a button to set to normal speed again, repeat the steps and create with the drive.js content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment