How to watch YouTube videos faster than 2x
Chances are pretty high that you wanted to save time and watch a video much faster than 2x playback speed(the maximum that YouTube provides). This can be easily achieved by using just one line of JavaScript in your browser’s console. Its really simple, and not that much technical although I will explain the line of code that we are using to perform our required hack.
So let’s get started.
First of all, open the video that you need to watch with a playback speed greater than 2x.
Next Open your browser’s console by typing in CTRL + SHIFT + J (works fine for both Mozilla Firefox and Google Chrome).
Copy and Paste the following line of code:
document.getElementsByTagName(“video”)[0].playbackRate = x
Here ‘x’ is the playback speed which you want to set for your required video.
- Close the console and enjoy your video at a rate greater than 2x.
For the interested people, let me explain what this code does here.
What is this code doing here :
Basically this is simple Javascript code that we are writing to tweak the settings of YouTube’s video player.
Here, we are taking the document object( The document is a part of the window object and can be accessed as window.document. Basically, the window object is the global object) and using a method called getElementsByTagName, which returns an array of the tags names video. Then we are accessing the first element of that array, that represents the YouTube video player, which has the property playbackRate. whose value we are setting to our desired value we want. This is basically how we are changing the playback speed according to our needs.
If you are not familiar with JavaScript, no problem you can use this little hack anyways, but I would insist you to learn it as it is a really powerful language and can do almost everything on the web, if one knows how to use it as per needs.