Created
July 26, 2014 22:41
-
-
Save psychfan5/31331f8092a82cd4db87 to your computer and use it in GitHub Desktop.
This file contains 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 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