ChatDelay

ChatDelay is a chat scripts that prevents users from sending long messages over a very short time, such as flood messages by spammers.

Functionality
Whenever sending a message, the scripts disables sending further messages for a specific period of time. A progress bar below your avatar displays the remaining time.

If the sent message contains 10 characters or less, the delay before being able to send another message would be 1 second. For longer messages, the timer's duration is calculated logarithmically, based on how long the message is.

Even though users can't send messages while the timer is set, they are still able to type new messages- in order not to cause any inconvenience for everyday chatting- and will be able to send them as soon as the time ends.

Installation
For a site-wide effect, add the following to MediaWiki:Chat.js in your wiki. For a personal use, add it to Special:MyPage/chat.js:

Customization
There are 2 ways to customize the script: Customization is done by adding the following code before the script's import function (see the table for explanation):
 * 1) Customize the maximum waiting time.
 * 2) Enable this feature in private messages (by default, it only affects main chat).

Versions

 * July 6, 2015- official release.