by tptacek · 10y ago · 0 comments
There's probably an easier way to do it, but if you want to get faster playback (2x is about as fast as I can comprehend this lecturer at), this line seems to do the trick:
document.getElementById("myElement").querySelector("video").playbackRate = 2 document.getElementsByTagName('video')[0].playbackRate = 2;
Not tested. javascript:void%20function(){document.querySelector(%22video%22).playbackRate=parseFloat(prompt(%22Set%20the%20playback%20rate%22))}();
And I find that about +70% is the speed I most-frequently want, so here's my one-click "x1.7": javascript:void%20function(){document.querySelector(%22video%22).playbackRate=1.7}();
Both of these adjust the speed of all non-iframe-embedded HTML5 video elements on the current page.Of course, because of XSS-prevention rules, they won't help with iframe-embedded players. For that I guess you're gonna need a plugin.