Skip to content

Instantly share code, notes, and snippets.

@Wolvereness
Forked from EdGruberman/gist:d8ce793a56b33feca1ee
Last active August 29, 2015 14:23
Show Gist options
  • Save Wolvereness/fc6312f2e26c141682bd to your computer and use it in GitHub Desktop.
Save Wolvereness/fc6312f2e26c141682bd to your computer and use it in GitHub Desktop.
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