Created
February 28, 2024 00:19
-
-
Save JohnStarich/d8a1336544d02f6d35467ffd126c7bd1 to your computer and use it in GitHub Desktop.
fast-videos-bookmarklet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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