User:MateyY/CommentsDisabled.js/doc

The following script changes the text in the comments button and all other comments counters depending on whether comments have been removed and/or disabled.

Use
To use the code, import it by writing:

Feel free to add any comment you want to describe what the script does, etc. However, I would be thankful if you would not remove the credits.

Performance
What you see above is a screenshot of an article on Avatar Wiki that had its comments removed per older forum consensus. The script calculated that and changed the text in the comments box from "Comments 23k" to "Comments disabled". You can see that the comment counting bubble was kept.

What you see above is the header of an article that has not had its comments removed. The script calculated that and did not alter the text.

This is a blog post on Community Wikia that had its comments disabled — not removed, just disabled. As you can see, the comments button still changes. The script has also been made to work when comments from a blog post are removed. It will also not affect talk page buttons and other comment counter buttons on the page.

Feedback
For any feedback, please contact me.