Skip to content

Instantly share code, notes, and snippets.

@JohnStarich
Created February 28, 2024 00:19
Show Gist options
  • Save JohnStarich/d8a1336544d02f6d35467ffd126c7bd1 to your computer and use it in GitHub Desktop.
Save JohnStarich/d8a1336544d02f6d35467ffd126c7bd1 to your computer and use it in GitHub Desktop.
fast-videos-bookmarklet
javascript:(function() {
const videos =
Array.from(document.querySelectorAll('video'))
.concat(
Array.from(document.querySelectorAll('iframe'))
.flatMap(doc =>
Array.from(
doc.contentDocument.querySelectorAll('video')
)
)
);
console.log("Found videos:", videos);
videos.forEach(v => {
v.playbackRate = 10;
console.log("Video playback rate increased to", v.playbackRate);
});
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment