User:MateyY/CommentsDisabled.js

/* The following script was created by MateyY. * Version: 1.0 * For skins: oasis * JavaScript library used: jQuery * Function: Informs user whether comments are removed by changing the text displayed in the button. * Build for use on: Avatar Wiki * Do NOT use except with permission. * Do NOT copy the code; import it! * Thank you! */ $(document).ready(function {     if (skin == "oasis") {          if ($("#WikiaArticleComments").length <= 0) {               jQuery.noop;          } else if ((($("#article-comments").length < 1)) && ($("a.comments:contains(' Comments')"))) {               $("a.comments").html("Comments (disabled) ");          }     } });