FANDOM


Pings provides highly customizable ping phrase alerts for Special:Chat.

Features

  • Desktop notifications and sound
  • Option to highlight the whole message or just the ping phrase
  • Regular expression pings by prefixing a ping with regex:
  • Recent pings section with a configurable limit and jump to message
  • User blacklist/whitelist
  • Unread ping counter in chat header button

Installation

Configuration

Most configuration settings in this script can be changed through the settings modal, but you can set defaults and other more specialized options through the window.Pings object.

storage
This object stores all values related to configuration, and can be set to provide defaults.
maxRecentPings
This is a number that represents how many recent mentions to be stored for displaying in the modal. Default: 5

Example

This example shows the default options used by the script in a way that you can replace the values in your own page.

window.Pings = {
    maxRecentPings: 5,
    storage: {
        whitelist: false,
        notifications: false,
        casesensitive: false,
        'word-boundary': false,
        'audio-enabled': false,
        'inline-alerts': false,
        'highlight-ping': false,
        blacklist: '',
        audio: 'https://images.wikia.nocookie.net/monchbox/images/0/01/Beep-sound.ogg',
        pings: '',
        color: 'red',
    }
};
Text above can be found here (edit)
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+