FANDOM


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

Installation

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

importArticles({
    type: 'script',
    articles: [
        'u:dev:ChatHacks.js'
    ]
});

Configuration

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;

Features

  • 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

Localizations

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

Bugs

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.

History

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

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.