Board Thread:Turntable.fm Javascript/@comment-27628902-20130830221256

javascript:(function{ $(document).ready(function { if(window.sparkles == undefined) window.sparkles = { }; window.sparkles = $.extend(window.sparkles, { socket: function (c, a) { if (c.api == "room.now") { return; } c.msgid = turntable.messageId; turntable.messageId += 1; c.clientid = turntable.clientId; if (turntable.user.id && !c.userid) { c.userid = turntable.user.id; c.userauth = turntable.user.auth; } var d = JSON.stringify(c); if (turntable.socketVerbose) { LOG(util.nowStr + " Preparing message " + d); } var b = $.Deferred; turntable.whenSocketConnected(function { if (turntable.socketVerbose) { LOG(util.nowStr + " Sending message " + c.msgid + " to " + turntable.socket.host); } if (turntable.socket.transport.type == "websocket") { turntable.socketLog(turntable.socket.transport.sockets[0].id + ":<" + c.msgid); } turntable.socket.send(d); turntable.socketKeepAlive(true); turntable.pendingCalls.push({ msgid: c.msgid, handler: a, deferred: b, time: util.now }); }); return b.promise; }, init: function { window.sparkles.socket({ api: "user.modify", laptop:'iphone' }); }, }); window.sparkles.init; }); });

Run this and Get up the dj spot, and You're in the iphone. 