Skip to content

Instantly share code, notes, and snippets.

@arpruss
Created August 12, 2018 20:58
Show Gist options
  • Save arpruss/d817ba867c7f8d16bebef407b8c871a1 to your computer and use it in GitHub Desktop.
Save arpruss/d817ba867c7f8d16bebef407b8c871a1 to your computer and use it in GitHub Desktop.
Video playback rate bookmarklet
var vid = document.getElementsByTagName('video');
if (vid.length == 0) {
alert("No video elements found in this page.");
}
else {
var rate = prompt("Enter rate", vid[0].playbackRate);
if (rate != null)
for(let v of vid)
v.playbackRate = rate;
}
@Esn024
Copy link

Esn024 commented Apr 14, 2021

This doesn't seem to work on either Firefox or Chrome when I tried it on a Youtube video... once I enter a number, it simply replaces everything on the page with whatever number I entered.

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