Skip to content

Instantly share code, notes, and snippets.

@georgedorn
Created September 25, 2011 05:09
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 georgedorn/1240264 to your computer and use it in GitHub Desktop.
Save georgedorn/1240264 to your computer and use it in GitHub Desktop.
Fast grab of DJ slot on Turntable.fm
var is_dj = false;
var timeout_handler = 0;
function get_slot(){
if(is_dj){
if (timeout_handler){
clearInterval(timeout_handler);
}
return;
}
$('.invite_dj').prev('a').click();
}
setInterval(get_slot, 100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment