Skip to content
Philip Nicolcev edited this page Nov 8, 2013 · 2 revisions

This modification is short and simple.

Open chat/js/custom.js
Add the following to the end of the file:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
    text=text.replace(/frug/gi, 'Fruggles');
    return text;
}

This will replace the word frug in chat with Fruggles. You can, of course, replaced the word frug with whatever you like, and you can add more replacements by copying the relevant line. For example:

//Replace stuff people say:
ajaxChat.replaceCustomText = function(text) {
    text=text.replace(/frug/gi, 'Fruggles');
    text=text.replace(/foo/gi, 'Donkey Foo');
    return text;
}

Adds a replacement for the word "foo".