5 ms·
I believe that chromium is still the state for the art for realtime processing of playback rate increase at speeds greater than 4x. Forgive my stackoverflow bo
by maven29 5y ago
I believe that chromium is still the state for the art for realtime processing of playback rate increase at speeds greater than 4x.
Forgive my stackoverflow bodge job (this isn't my bread and butter) but this is what I came up with, when I had to speedrun a couple of courses.
I use the shift key to scroll the page sideways (which it can't) so that the script registers the event correctly without moving the page. I just scroll up to get through the sluggish parts and scroll down for the meaningless trivia that inevitably ends up being crucial insight when you least expect it. I would have attempted to implement acceleration with my limited skills, but my scroll wheel has mad detents so it wouldn't have helped. Not sure if it would work on youtube.
javascript:window.addEventListener('wheel', function(event){ if (event.deltaY < 0) { console.log('scrolling up');for (vid of document.querySelectorAll('video')) vid.playbackRate += 0.1 } else if (event.deltaY > 0) { console.log('scrolling down');for (vid of document.querySelectorAll('video')) vid.playbackRate -= 0.1 }});