Board Thread:General Discussion/@comment-8179648-20140817135953/@comment-452-20140825031044

Yes, that would be even easier, because all you would need to do is add CSS to hide that user's messages.

For instance $('li[data-user="'+username+'"]').css("display","none");

edit: However, as this would allow users to auto-hide all moderator messages, I would not advise doing this.

Here is a basic version of the "click to hide" idea I just created:

First, create class ".invisible" in the site or chat CSS, and use display:none; or visibility:hidden; or whatever style you would like to use. It's pretty rough, it can undoubtly be cleaned up a bit, and it has only been tested in google chrome.

edit: One important thing to remember is that clicking on links directly still opens the link - click beside the link instead.

edit: tested and working in firefox 31.

edit: there is a minor issue when the same person says something after their immediately preceding message has been hidden - their username isn't shown, so it appears the person before them said it.

This style fixes that: