Neopets bad word checker

Notifies you when you enter a "bad" word on the neoboards.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        Neopets bad word checker
// @namespace   neonazis
// @include     http://www.neopets.com/neoboards/topic.phtml*
// @version     1
// @grant       none
// @require     http://code.jquery.com/jquery-1.11.0.min.js
// @description:en Notifies you when you enter a "bad" word on the neoboards.
// @description Notifies you when you enter a "bad" word on the neoboards.
// ==/UserScript==

var naughtyWords = ["shit", "fuck", "cunt", "crack", "weed", "uncle", "nigger", "death", "kill", "cum", "rape", "semen", "anal", "screw",
                    "meth", "snatch", "ass", "gay", "cock", "hole", "nuts", "meth", "ball", "stupid as", "bad as", "my space", "do it", 
                    "expression", "pen", "bad", "hit", "religion", "sex", "drunk", "makeup", "text", "shindig", "stick", "itching",
                    "lesbian", "lezzie", "naked", "piss", "queer", "schlong", "suck", "tampon", "tit", "vagina", "idiot", "tag", "hooters",
                    "google", "myspace", "tumblr", "twitter", "youtube"];
var currentNaughtyWords = [];
$(document).ready(function(){
  $("form[name='message_form'] > table > tbody > tr:nth-of-type(2)").after("<tr><td id='censorcheck' style='text-align: center; color: #FF0000;' colspan='2'></td></tr>");
  $("#censorcheck").html("&nbsp;");
}); 

function checkWords() {
  message = $("form[name='message_form'] textarea").val();
  currentNaughtyWords.length = 0;
  for (i = 0; i < naughtyWords.length; i++) {
    if (message.toLowerCase().indexOf(naughtyWords[i]) >= 0) {
       currentNaughtyWords.push(naughtyWords[i]);
    }
  }
  if (currentNaughtyWords.length > 0) {
    $("#censorcheck").text("Naughty words found: " + currentNaughtyWords);
  } else {
    $("#censorcheck").html("&nbsp;");
  }
}

var scheduleCheck = window.setInterval(function() {
  checkWords()
}, 1000);