Skip to content

Instantly share code, notes, and snippets.

@josephdunn
Created August 24, 2011 14:48
Show Gist options
  • Save josephdunn/1168232 to your computer and use it in GitHub Desktop.
Save josephdunn/1168232 to your computer and use it in GitHub Desktop.
djbutton = $($('a').get(0));
var djit = function() {
if (djbutton.css('display') != 'none') {
e = new jQuery.Event('click');
e.pageX=1;
e.pageY=1;
turntable.lastMotionTime=new Date().getTime();
djbutton.hover().trigger(e);
console.log(new Date() + ' -- triggered DJ');
} else {
setTimeout(djit, 500);
}
};
djit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment