User:Ultimate Dark Carnage/chat.js

(function(mw, $){   if ((mw.config.get('wgCanonicalSpecialPageName') == 'Chat' || mw.config.get('wgPageName') == 'Special:Chat') && (mw.config.get("wgUserGroups").indexOf('sysop') + mw.config.get("wgUserGroups").indexOf('staff') + mw.config.get("wgUserGroups").indexOf('helper') + mw.config.get("wgUserGroups").indexOf('vstf') + mw.config.get("wgUserGroups").indexOf('chatmoderator') > -5)){        var chat_action = {};        chat_action._menu = function(title, content){            $('.ChatWindow').append( $(' ', {                   "class": "ChatMenu",                    html: content                }).html.before(' ' + title + ' ') );       };        $('.Write').append( $(' ', {               "class": "ChatActionButton chat-action-button",                "id": "ChatActionButton"            }).html(                $('', { "href": "#", "class": "ChatAction" }).text('Action')           ) );       $('.ChatActionButton').children($('')).on('click', function{ var chatActionHTML = '' for (var i = 0; i < Object.keys(mainRoom.model.users._byCid).length; i++){ }       });    } })(mediaWiki, jQuery);