Skip to content

Instantly share code, notes, and snippets.

@jamesu
Created July 17, 2011 21:30
Show Gist options
  • Save jamesu/1088084 to your computer and use it in GitHub Desktop.
Save jamesu/1088084 to your computer and use it in GitHub Desktop.
Synchtube debug mode
// Paste this in a JS console
$('body').append('<div id="io_debug"></div>');
// Users
sp.users.me // current user
sp.users.me.attributes().id // current user id
User.find(id).attributes().nick // username from id
// Print out all users in room
User.each(function(user) { console.log(user.attributes().id); });
// Sending commands
// (please do not abuse)
socket.send_cmd(<command>, <parameters>);
// Useful commands
// mute [user_id, mute]
// ban user_id
// kick [user_id, "Reason"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment