tehsurfer / s2s webcam manager

// ==UserScript==
// @name         s2s webcam manager
// @namespace    http://surf2surf.com/
// @version      0.1
// @description  Navigate Surf2surf live surf cams with arrow keys. (Same functionality as youtube videos)
// @author       Jesse khorasanee
// @match        https://www.surf2surf.com/reports/*
// @grant        none
// @license      MIT
// @run-at       document-end
// ==/UserScript==

setTimeout(startUp, 5000)

function startUp() {
window.video22 = document.querySelectorAll('video')[1]
window.addEventListener('keyup', function(e){
    if (e.which == 37){
        window.video22.currentTime -= 5
    }
    if (e.which == 39){
        window.video22.currentTime += 5
    }
});
console.log('tampermonkey script activated')
setInterval(function() {
    window.location.reload();
}, 1000*60*10)
}