Skip to content

Instantly share code, notes, and snippets.

@FelixLuciano
Last active March 31, 2022 23:02
Show Gist options
  • Save FelixLuciano/5f118c0c422b21512a396ee2589aa7cd to your computer and use it in GitHub Desktop.
Save FelixLuciano/5f118c0c422b21512a396ee2589aa7cd to your computer and use it in GitHub Desktop.
⏩ PlaybackRate Bookmarklet

Sets the playback rate on every video in the current page by the prompt input value

How to use

  1. Download PlaybackRate.html (press ctrl + s to save the file);

  2. Import it as bookmarks to your web browser:

  3. Go to any website with an HTML5 video or audio player and open the ⏩ PlaybackRate bookmarklet;

  4. Set a PlaybackRate value (decimals with dots eg. 1.5) and click ok;

  5. Enjoy faster or S L O W E R!

<!DOCTYPE NETSCAPE-Bookmark-file-1>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DT><H3>Bookmarklets</H3>
<DL><p>
<DT><A HREF="javascript:(function(s){document.querySelectorAll('video,audio').forEach(a=>a.playbackRate=s===null?1:s);console.log(s)})(prompt(%22Speed%22,%20%221%22))" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAACK0lEQVQ4jZWTvU9UURDFf+e+t28/WIhBjMFGCUQtTCyMiTEYoSM2FpZQiZZaWBoL/gVrbRRt1BYag/oXGEks6Awa3AQiq8uyK2/33rF47/ERbTzVvbkz5545MyMK3Fsuc/3aBGma3fsShxGbQQIJ8GvjK/PndwCyoMXmRcrxC0IYw/fBIcyOEkhGwIgiI0q22OvcZW5kJQYgsgfU6xdo/gi4yElgAqzIzY8O8D4wUB2j9/sRkBPACN00IAUsyLxlWQ4IYMEgUqHX6HYC5odZsNjlBCaZo2eaPBHz9MqAas5EJ+j2eKLHl2uiF0QAZdZkeaOoICgebCBC8+MVlqaHcA5OVRz3z1V5crWOCyYLViiBBlYQyLJ6FczwZkydLPF8epDBkvBm3Jmo8GyyTkVIWObMKIoPFBSeCYfoB2P2dJLVZ9DtB+bOlPnWCTz85HESYb+WPIhcnWHETqzvBt42ehhQjR3ru5436ylEwnLJ7rAC8lY7iUY3cPP9DkvfeziJ1WafmXctPm72UCzy/H2Cgs/iyNmXtufGhxarGynHSmKt5ZlZabHW9LhylH0uMxrk0/Zye5lqbYburq8nimqR2Nz1uEgMJcIJtjsBF4sQCCQVR9r9TPv4pTjvQYeoBDLfTlHbDMUiGPzcy63N74DHOYesTwOfEQT/Gt+7RbleLmbCjqxBYbIBFhEnsBe9YkHhYGEWt6ZwnAWlxVT9BTPDqUTQBrPDy/+M+V/8Abg39brStLM3AAAAAElFTkSuQmCC">PlaybackRate</A>
</DL><p>
javascript:(function(s){document.querySelectorAll('video,audio').forEach(a=>a.playbackRate=s===null?1:s)})(prompt('Speed'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment