NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name video controls on zenva
// @version 1
// @author TiddlyJinks
// @license MIT
// @grant none
// @match https://academy.zenva.com/*
// ==/UserScript==
document.onkeydown = checkKey;
function checkKey(e) {
e = e || window.event;
if (e.keyCode == '37') {
document.querySelector('.vjs-skip-backward-10').click();
}
else if (e.keyCode == '39') {
document.querySelector('.vjs-skip-forward-10').click();
}
else if (e.keyCode == '32') {
e.preventDefault();
document.querySelector('.vjs-play-control').click();
}
}