PrivateMessageAlert tells you when a private chat is updated (and you're not focused on the chat tab) by adding a blinking message to the tab name informing who messaged you.


Add the following to your wiki's MediaWiki:Chat.js or your personal chat.js.

importScriptPage('MediaWiki:PrivateMessageAlert/code.js', 'dev');

Or if you already have an importArticles call you can add this:

    type: "script",
    articles: [
        // Other scripts...
        // ...


All variables are stored in the PrivateMessageAlert object, which must be defined before the importArticles statement.

This can be a string or an array of publicly available, valid mp3/ogg/wav files.
The interval between the tab switching state between users, in milliseconds. Please don't set this to below 1000.
This overrides the translations for your own text to display on the title (and desktop notifications). It replaces $1 with the user who messaged you.
Boolean that defines if the script should display desktop notifications. It will still ask for permission to show them the first time you run the script, so it should be ok to have this set wiki-wide.
By default, the script won't do anything if you're viewing the document. This changes it so you still get a notification if you're focused on the window.


var PrivateMessageAlert = {
    beepSound: '',
//  beepSound: ['', ''],
    message: '$1 sent you a message!',
    notifications: true,
    alertWhileFocused: true,
    interval: 2000

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.