User:Cyborg Ranger/chat.js

//Chat censor //Censors any uncensored cusses when the button is pressed //From http://stackoverflow.com/questions/4541070/how-can-i-do-a-jquery-swear-word-bad-word-filter //Modified for Wiki use by Guppie the Third var chatCensor = function {String.prototype.repeat = function(num){ return new Array(num + 1).join(this); }

var filter = ["insert", "all", "words", "you", "don't", "wanna", "see"];

$('span.message').text(function(i, txt){

// iterate over all words for(var i=0; iCensor any uncensored words ').appendTo('.Rail');