Created
August 12, 2018 20:58
-
-
Save arpruss/d817ba867c7f8d16bebef407b8c871a1 to your computer and use it in GitHub Desktop.
Video playback rate bookmarklet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.