This is for the Kingdom of Loathing browser game. It colours the text you enter in the chat box differently if it starts with "/", so you can avoid chat-misfires where you accidentally post real-text chat rather than chat commands because you forgot the leading "/".