Skip to content

Instantly share code, notes, and snippets.

@chrahunt
Created December 23, 2015 00:28
Show Gist options
  • Select an option

  • Save chrahunt/d25e2ea9e671dde46550 to your computer and use it in GitHub Desktop.

Select an option

Save chrahunt/d25e2ea9e671dde46550 to your computer and use it in GitHub Desktop.

Revisions

  1. chrahunt created this gist Dec 23, 2015.
    27 changes: 27 additions & 0 deletions fake-some-ball.user.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    // ==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);
    });