YSK: How to get any youtube playback-speed you want! Using a little JS.
YSK: How to get any youtube playback-speed you want! Using a little JS.
![the background blur](https://i.imgur.com/Gs5DAJ5.png?thumbnail=256&format=webp)
![](https://i.imgur.com/Gs5DAJ5.png?thumbnail=1024&format=webp)
I often set the playback-rate of youtube videos to something like 1.25 or 1.5 to get through a video a little faster without getting bored.
But sometimes 1.25 is a little to fast for my taste.
So i just went and had a look into the html and found that i can easily get any playback speed i want by running this snippet:
document.getElementsByClassName('video-stream html5-main-video')[0].playbackRate=1.125;
This sets the speed to 1.125. But any rate will do: 0.69, 4.20, 6.666. Doesn't matter.
It's kinda obvious that it will throw an error if there is not at least one element on the page with the classnames 'video-stream html5-main-video', but nevermind.
I then added this snippet into a browser-bookmark i can click anytime i'm watching a yt video and want to set the speed.
javascript:{document.getElementsByClassName('video-stream html5-main-video')[0].playbackRate=1.125;}
You're viewing a single thread.
Doesnt youtube have a playback speed option built into the player?Sorry, I get it. This allows any playback speed whereas youtube has specific options
17 0 ReplyYes, but it goes in steps of 0.25 and that sometimes is too coarse/rough.
E.g. 0.50, 0.75, 1.00, 1.25, 1.5
This snippet is just to get a little more fine-grained control.
5 0 ReplyI think what they're trying to tell you is that you can have ANY playback speed instead of the 4 options given by the built in player.
5 0 ReplyAh yes I get it! Thanks
5 0 Reply