Skip to content

Instantly share code, notes, and snippets.

@undergroundmonorail
Last active August 29, 2015 14:05
Show Gist options
  • Save undergroundmonorail/27db068f9f9f499a228f to your computer and use it in GitHub Desktop.
Save undergroundmonorail/27db068f9f9f499a228f to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name TagPro Teams Decapitalized
// @namespace http://www.reddit.com/u/undergroundmonorail
// @include http://tagpro-*.koalabeast.com*
// @include http://tangent.jukejuice.com*
// @exclude http://tagpro-*.koalabeast.com/groups/*
// @exclude http://tangent.jukejuice.com/groups/*
// @license WTFPL
// @author monorail
// @version 1.1.0
// ==/UserScript==
tagpro.ready(function() {
var prettyTextOriginal = tagpro.prettyText;
tagpro.prettyText = function(e,t,n,r,s,o,u) {
if (e.indexOf("has switched to the")>-1 | e.indexOf("has joined the")>-1 | e.indexOf("left the")>-1) {
e=e.replace("Red team", "red team");
e=e.replace("Blue team", "blue team");
}
return prettyTextOriginal(e,t,n,r,s,o,u);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment