Create a gist now

Instantly share code, notes, and snippets.

Embed
turntable.fm stuff
turntable.addEventListener("soundstart", function(m){ROOMMANAGER.callback("add_song_to","queue"); ROOMMANAGER.callback("upvote");});
turntable.addEventListener("message", function(m){ if(typeof(m.command) !== "undefined") { if (m.command == 'update_votes'){setTimeout(function(){ROOMMANAGER.callback("stop_song")}, 1000)} } });
setInterval(function(){ROOMMANAGER.callback("upvote")}, 500);
setInterval(function(){turntable.lastMotionTime = util.now() / 1000;}, 10000);
setInterval(function(){$('.ok-button').click()}, 500);
@thugo

This comment has been minimized.

Show comment
Hide comment
@thugo

thugo Jun 22, 2011

hey! I've tried this and doesnt seem to work.. or maybe i tried it in a wrong way..
can you give me some help? :) thanks

thugo commented Jun 22, 2011

hey! I've tried this and doesnt seem to work.. or maybe i tried it in a wrong way..
can you give me some help? :) thanks

@Tivoli

This comment has been minimized.

Show comment
Hide comment
@Tivoli

Tivoli Jun 22, 2011

Have to use it with multiple djs/people in the room all using it

Owner

Tivoli commented Jun 22, 2011

Have to use it with multiple djs/people in the room all using it

@dmoneycin

This comment has been minimized.

Show comment
Hide comment
@dmoneycin

dmoneycin Jun 22, 2011

can you set up a room real quick?

can you set up a room real quick?

@dmoneycin

This comment has been minimized.

Show comment
Hide comment
@dmoneycin

dmoneycin Jun 23, 2011

ok so once you have the people and the DJ's, how do you activate it.

ok so once you have the people and the DJ's, how do you activate it.

@Sevensig

This comment has been minimized.

Show comment
Hide comment
@Sevensig

Sevensig Jun 23, 2011

In firefox, download Firebug. Open firebug and click the console tab. There should be three >'s at the bottom, click to the right of it, paste this code in, hit enter, then click run to the right.
In chrome right-click (or ctrl+click) to bring up the inspector. There should be a button with a > and three lines. Click it, then paste your code and hit enter.

I also want to let you know that this code doesn't work as intended (I'm on mac OS 1.6.7). The Idle alert comes up, the button gets pushed, but it pushes you out of the room after two minutes anyway. It does it on both Firefox and Chrome.

In firefox, download Firebug. Open firebug and click the console tab. There should be three >'s at the bottom, click to the right of it, paste this code in, hit enter, then click run to the right.
In chrome right-click (or ctrl+click) to bring up the inspector. There should be a button with a > and three lines. Click it, then paste your code and hit enter.

I also want to let you know that this code doesn't work as intended (I'm on mac OS 1.6.7). The Idle alert comes up, the button gets pushed, but it pushes you out of the room after two minutes anyway. It does it on both Firefox and Chrome.

@dmoneycin

This comment has been minimized.

Show comment
Hide comment
@dmoneycin

dmoneycin Jun 23, 2011

hey man, it says turntable is undefined in chrome

hey man, it says turntable is undefined in chrome

@Tivoli

This comment has been minimized.

Show comment
Hide comment
@Tivoli

Tivoli Jun 23, 2011

Just checked and it's still defined :P

Owner

Tivoli commented Jun 23, 2011

Just checked and it's still defined :P

@Tivoli

This comment has been minimized.

Show comment
Hide comment
@Tivoli

Tivoli Jun 23, 2011

Also, they are constantly updating stuff, so eventually this is going to no longer work ;)

Owner

Tivoli commented Jun 23, 2011

Also, they are constantly updating stuff, so eventually this is going to no longer work ;)

@bberman

This comment has been minimized.

Show comment
Hide comment
@bberman

bberman Jun 23, 2011

This didn't work for me. When do you run this?

bberman commented Jun 23, 2011

This didn't work for me. When do you run this?

@Sevensig

This comment has been minimized.

Show comment
Hide comment
@Sevensig

Sevensig Jun 23, 2011

It's working fine for me. I'm running it right now.

It's working fine for me. I'm running it right now.

@l1nk1n

This comment has been minimized.

Show comment
Hide comment
@l1nk1n

l1nk1n Jul 6, 2011

Is this still working as of today? It's not working for me. Using firefox. "Not defined" Please advice..thanks.

l1nk1n commented Jul 6, 2011

Is this still working as of today? It's not working for me. Using firefox. "Not defined" Please advice..thanks.

@l1nk1n

This comment has been minimized.

Show comment
Hide comment
@l1nk1n

l1nk1n Jul 6, 2011

Also, on Chrome. After hitting Run there's no notification whether script worked or not.

l1nk1n commented Jul 6, 2011

Also, on Chrome. After hitting Run there's no notification whether script worked or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment