Skip to content

Instantly share code, notes, and snippets.

@chrahunt
Created December 23, 2015 00:28
Show Gist options
  • Save chrahunt/d25e2ea9e671dde46550 to your computer and use it in GitHub Desktop.
Save chrahunt/d25e2ea9e671dde46550 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Fake Some Ball
// @namespace http://reddit.com/user/snaps_
// @description Better faking Some Ball. Never a name overlapped.
// @include http://tagpro-*.koalabeast.com:*
// @include http://maptest*.newcompte.fr:*
// @include http://tangent.jukejuice.com:*
// @license MIT
// @author snaps
// @version 0.1.0
// @run-at document-start
// ==/UserScript==
// Userscript functions.
function runOnReady(fn) {
if (typeof tagpro !== 'undefined' && tagpro.playerId) {
fn();
} else {
setTimeout(function() {
runOnReady(fn);
}, 0);
}
}
runOnReady(function () {
tagpro.socket.emit("name", "Some Ball " + tagpro.playerId);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment