Skip to content

Instantly share code, notes, and snippets.

@dy-dx
Created March 14, 2018 20:46
Show Gist options
  • Save dy-dx/36c8b42eec1d32c26352a1d137699ded to your computer and use it in GitHub Desktop.
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
// ==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