Board Thread:Support Requests - Designing Your Wikia/@comment-9725237-20140530000103/@comment-4018164-20140530162630

If you've enabled custom chat JS, you could add some code to MediaWiki:Chat.js to interact with the API to change the user's rights. To be honest, i think it has some disadvantages. The "traditional" way for promoting a user isn't slow (you also have links to the user's contribs via the chat rail, which makes it faster), and same as it's possible that you could accidentally press the "Give chatmod rights" button, a script that has no prevention mechanism could result accidental promotions. But if you're still interested in having this sort of this, i guess it's possible to add some code over there.