ChatObject

ChatObject is a script that creates a global object allowing for easier customization of Chat, such as adding action buttons and adjusting colors.

Setup
Assuming you already have imported custom Javascript into your chat (if not, check out https://github.com/sactage/wikia-js-snippets/blob/master/README.md steps 1, 2, and 3), place the following into MediaWiki:Chat.js:

Usage
The methods of the Chat object are documented extensively in the source code. You can simply call them in MediaWiki:Chat.js like:

You can easily extend the Chat object in MediaWiki:Chat.js with your own methods and properties:

If you have created a particularly useful addition, please be so kind and post it on the talk page so that it can be implemented into core functionality for the benefit of others.