Skip to content

Instantly share code, notes, and snippets.

@nomomon
Last active August 18, 2021 15:08
Show Gist options
  • Save nomomon/06c96e17e6b652e00b17524bf9da4706 to your computer and use it in GitHub Desktop.
Save nomomon/06c96e17e6b652e00b17524bf9da4706 to your computer and use it in GitHub Desktop.
Bookmarklet to set custom speed to YouTube videos
(() => {
speed = prompt("speed?");
if(speed !== null){
document.querySelector(".html5-main-video").playbackRate=speed;
}
})();
@nomomon
Copy link
Author

nomomon commented Aug 18, 2021

Bookmarklets are browser bookmarks that execute JavaScript instead of opening a webpage. They're also known as bookmark applets, favlets, or JavaScript bookmarks.

To use this a bookmarklet follow this tutorial.

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