Board Thread:Script Suggestions/@comment-1251315-20150626123140/@comment-452-20150627133116

mainRoom.model.blockedUsers is an array of users who you have blocked PMs from.

The server is obviously aware of the list, as it's kept between sessions, but I am unsure if the message blocking is done by:
 * the server, which doesn't send blocked messages to the client at all, and that array is just to mark which users can be unblocked.
 * the client, which receives the messages from the server, and discards them using that array.

You could test this and find out, hopefully the server blocks the messages itself, but you never know with Wikia.

Chat ignores are global, if you ignore PMs in one chat, they're ignored in all chats, so simply hiding the "block PMs" link would not be enough.

You would have to run a script in Mediawiki:Chat.js that checks mainRoom.model.blockedUsers for moderator names, and then sends an unblock command to the server.

Hopefully just by reading the previous sentence, it will be obvious to you that this is unacceptable. Taking control of another user's browser in this way is a step too far. Adding optional sound notifications is one thing, but sneakily sending commands to the server without the user's permission is something entirely different.

However, you might want to also look at mainRoom.model.blockedByUsers - I suggest using this to enforce a policy of "If you block messages from a chat moderator, you will be banned from the chat". You could automate this to alert you when a user who has blocked PMs from you is present in the chat. SuperSajuuk wrote:

not all issues in chat should be posted to a talkpage either. If a user has blocked moderator PMs, then they're decided that it's okay for messages to be left on their talk page instead.