Skip to content

Instantly share code, notes, and snippets.

@psychfan5
Created July 26, 2014 22:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psychfan5/31331f8092a82cd4db87 to your computer and use it in GitHub Desktop.
Save psychfan5/31331f8092a82cd4db87 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Tagpro AntiCopiedNames
// @namespace http://www.reddit.com/user/NewCompte
// @description Make names unique
// @include http://tagpro-*.koalabeast.com*
// @license WTFPL
// @author NewCompte
// @version 0.6
// ==/UserScript==
function myParentalControlScript ()
{
tagpro.socket.on("p", function (e) {
e = e.u || e;
for(var t=0,r=e.length;t!=r;t++)
{
var i=e[t],
player=tagpro.players[i.id];
for(var f in i)
{
if(f=="name")
{
player[f] = i.id + " " + i[f];
player.cache.update();
}
}
}
});
}
var source = "(" + myParentalControlScript + ")()";
var thescript = document.createElement('script');
thescript.setAttribute("type", "application/javascript");
thescript.textContent = source;
document.body.appendChild(thescript);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment