FANDOM


Do not use this script.

This script does not work in its current state. Installing this script may cause errors or cause other scripts to malfunction. If you have it installed, it is recommended that you remove it.

If you are the author of this script, or are interested in restarting development, you may remove this message when the issues have been fixed.

Reason: Script replaces the HTML of entire content area, making it liable to break things in many unexpected ways.

Filter allows users to filter certain undesirable words from their wiki. This script also affects words containing other words (i.e. filtering "the" would also affect "their" since it contains the word "the").

Usage

Configuration

window.filteredWords = [
    'FILTEREDWORD',
    'ANOTHERFILTEREDWORD'
];
window.removedText = 'TEXTTOREPLACEFILTEREDWORD';

Using configuration options with Fandom Developers Wiki scripts

The instructions on this page describe how to use configuration options with a script. Here on the Fandom Developers Wiki, many scripts provide optional configuration settings as a mean to alter or enhance the default behavior of the script. When installing configuration options in your JavaScript file, please note that they need to go above the import statement in order to work — unless the directions say otherwise. In case MediaWiki:ImportJS is used to load the scripts, it will be executed last.

Configuration options load too late, don't work
// 1. AjaxRC import statement
importScriptPage('AjaxRC/code.js','dev');
 
// 2. AjaxRC configuration option
var ajaxRefresh = 30000;
Proper placement of configuration options
// 1. AjaxRC configuration option
var ajaxRefresh = 30000;
 
// 2. AjaxRC import statement
importScriptPage('AjaxRC/code.js','dev');

See also

Community content is available under CC-BY-SA unless otherwise noted.