MediaWiki:FandomizedChat/userMenu.js

$(document).ready(function{   $('#ChatHeader .User img').on('click', function(event){ if (!$('#UserMenu').length){ var $menu = $(' ', {                   'class': 'UserMenu user-menu',                    'id': 'UserMenu'                }); $menu.html(function{               var user_data = mainRoom.model.users.findByName( mw.config.get('wgUserName', wgUserName) ),                   avatar = user_data.attributes.avatarSrc,                    editCount = user_data.attributes.editCount,                    since = user_data.attributes.since,                    links = {                        'View Profile': wgServer + mw.util.wikiGetlink('User:' + mw.config.get('wgUserName', wgUserName)),                        'User Talk': ''                    };            }); }   }); });