ChatHacks is a JavaScript add-on for the Special:Chat page.


Add the following to the MediaWiki:Chat.js page on your wiki or to Special:Mypage/chat.js for personal use:

    type: 'script',
    articles: [


When adding the import, you can optionally add the following lines to set custom options.

Disable the star icons next to usernames
window.ChatHacksNoStar = true;
Set a custom icon to show next to messages from chat moderators
window.ChatHacksIconMod = 'full URL to image';
Set a custom icon to show next to messages from staff
window.ChatHacksIconStaff = 'full URL to image';
Set a custom sound to play when pinged
window.ChatHacksPingSound = 'full URL to audio file';
Play no sound when pinged
window.ChatHacksPingSound = false;


  • Ability to clear your chat window
  • A host of slash commands
  • Ability to create multi user private chats
  • Inline alerts every time your away status changes
  • Icons next to messages by staff and chat mods in the room
  • Pings when someone mentions your name or any other specified phrases


You can suggest translations on the talk page or add them yourself on MediaWiki:ChatHacks.js/i18n.js if you feel confident.


As the script is old and no longer maintained, there are a few bugs which may cause issues in chat. One of the bugs is from Private Messaging, and another bug is during the initial loading of the script. Any of these bugs happening will require reloading of the chat to alleviate, and it may be tedious to PM when using this script as a result.


  • 18 Mar 2016 - Copy to u:dev and lint
  • 14 Oct 2011 - Version 7.0