DEV Community

Discussion on: Gotta Go Fast: Playing YouTube Videos Faster

Collapse
 
grahamthedev profile image
GrahamTheDev • Edited

Sometimes something so simple can really be a game changer. I have taught myself to consume content at 2x speed and sometimes I could go faster, this now lets me do that (and how I didn't think of it before is just frustrating!)

One simple improvement is to pass the current playback speed into the prompt and that way it displays the current speed you have it set to when you try to change it (useful for fine tuning when you go over 2 as you can't see the current speed in the GUI as you said!). The following corrects for that.

javascript:(function(){document.getElementsByTagName("video")[0].playbackRate = prompt("Please enter the speed you wish to watch the video", document.getElementsByTagName("video")[0].playbackRate)})();
Enter fullscreen mode Exit fullscreen mode
Collapse
 
thehandsomezebra profile image
Stephanie Lage Frantz

Nice!! That's perfect!