Skip to content

Instantly share code, notes, and snippets.

@Spaider
Last active December 13, 2015 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Spaider/4942870 to your computer and use it in GitHub Desktop.
Save Spaider/4942870 to your computer and use it in GitHub Desktop.
Auto-start open races on Klavogonki.ru
// ==UserScript==
// @name KlavogonkiAutoStart
// @namespace klavogonki.ru
// @version 0.0.1.0
// @description Auto start open races on Klavogonki.Ru site
// @author Spaider
// @grant none
// @include http://klavogonki.ru/*
// ==/UserScript==
(function (){
var pdiv = null;
function tick(){
var vis = pdiv.style['display'];
if (!vis || vis == ""){
var start = document.getElementById('host_start');
if (start){
start.click();
}
return;
}
}
if (document.getElementById('paused')){
pdiv = document.getElementById('paused');
window.setTimeout(tick, 1000);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment