CustomChatPings allows you to set pings in chat with extensive customization for main chat.
This script makes use of local storage, which all browsers may not support. This also means if you clear your cache, the values stored will be lost, and the pings are specific to the chat it is used on and stored values are specific to that wiki only.
For all text fields, separate each entry with a comma (,)
This is where you can choose to be pinged for messages, or alerts, or both.
This chooses the URL path for the sound file to play when you are pinged. If not specified, it will use a default noise.
This is the color of the message to be changed to when pinged. If not specified, it will default to red.
This is the list of entries to ping you for messages received in chat.
This is the list of entries to not ping you for messages received in chat; false positives go here.
This is the list of users who will not be able to ping you.
This is the list of entries to ping you for alerts received in chat.
This is the list of entries to not ping you for alerts received in chat; false positives go here.
To install this script add the following to your chat.js on the wiki you want the script on:
Note: In this example, pay close attention to the placement of commas and other punctuation. For people who aren't familiar with programming (and even those who are!), a common mistake when writing code is to accidentally delete, forget, or misplace critical symbols like commas or quotation marks. This can cause a syntax error that breaks the code. Carefully follow the convention shown here when using importArticles.