Forked from EdGruberman/gist:d8ce793a56b33feca1ee
Last active
August 29, 2015 14:23
-
-
Save Wolvereness/fc6312f2e26c141682bd to your computer and use it in GitHub Desktop.
This file contains 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
var room = 37671; | |
$J.post( | |
'http://steamcommunity.com/minigame/ajaxleavegame/', | |
{ 'gameid' : '43089', 'sessionid' : g_sessionID } | |
); | |
var trying = false; | |
function tryJoin() { | |
if (!trying) { | |
trying = true; | |
JoinGameHelper(room); | |
return; | |
} else { | |
var button = $J('.btn_grey_white_innerfade'); | |
if (button) { | |
button.click(); | |
trying = false; | |
} | |
} | |
}; | |
window.setInterval(tryJoin, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment