Created
March 14, 2018 20:46
-
-
Save dy-dx/36c8b42eec1d32c26352a1d137699ded to your computer and use it in GitHub Desktop.
Tampermonkey script for SANS training videos - Change playback rate to 1.5x
This file contains hidden or 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
// ==UserScript== | |
// @name SANS training videos - Change playback rate to 1.5x | |
// @version 0.1 | |
// @match https://cc.sans.org/* | |
// @run-at document-idle | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
if (window.videojs) { | |
var interval = setInterval(function() { | |
if (document.getElementById('mainVideo_html5_api')) { | |
videojs('mainVideo_html5_api').playbackRate(1.5); | |
clearInterval(interval); | |
} | |
}, 200); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment