Created
December 23, 2015 00:28
-
-
Save chrahunt/d25e2ea9e671dde46550 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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