MediaWiki:Chat.js

/** * Chat message filter. * * @author User:Prince(ss) Platinum * * @description Filters banned links and censors words */ $(document).ready(function {   var regexp = /Special:Chat|encyclopediadramatica|ask.fm|Special:userlogout|retard(ed)|fag(got)/gi;    $('[name="message"]').keypress(function (e) { if (e.which == 32 || e.which == 13) { this.value = this.value.replace(regexp, ""); }   }); });