Skip to content

Instantly share code, notes, and snippets.

@lucahammer
Created June 17, 2022 08:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucahammer/05fc51a59a9665045c3a33af4c395645 to your computer and use it in GitHub Desktop.
Save lucahammer/05fc51a59a9665045c3a33af4c395645 to your computer and use it in GitHub Desktop.
Save the code as a firefox bookmark to speed up and video or audio file on any website
javascript:(function(){[].forEach.call(document.querySelectorAll('video,audio'), media => media.playbackRate += 0.5);console.log('playback speed: '+document.querySelectorAll('video,audio')[0].playbackRate);})();
// slower:
// javascript:(function(){[].forEach.call(document.querySelectorAll('video,audio'), media => media.playbackRate -= 0.5);console.log('playback speed: '+document.querySelectorAll('video,audio')[0].playbackRate);})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment