WordFilter is a script that displays an inline alert to any user who attempts to post a blocked word into main chat. The user can then choose to continue to post the message, or choose to cancel.
alertMessage = 'MESSAGETOSHOWWHENBADWORDFOUND'; window.badWords = ['BADWORD', 'ANOTHERBADWORD']; // add bad words to pre-generated list importScriptPage('WordFilter/code.js','dev');
|Using configuration options with FANDOM Open Source Library scripts|
// 1. AjaxRC import statement importScriptPage('AjaxRC/code.js','dev'); // 2. AjaxRC configuration option var ajaxRefresh = 30000;
// 1. AjaxRC configuration option var ajaxRefresh = 30000; // 2. AjaxRC import statement importScriptPage('AjaxRC/code.js','dev');
- The inline alert will be displayed once per chat room, including private messages. This can also be used to duplicate messages.