User:Ultimate Dark Carnage/chat.js

var mwVars = mw.config.get([           'wgUserName',            'wgChatEmoticons',            'wgUserLanguage',            'wgUserGroups',            'wgPageName',            'wgCanonicalSpecialPageName'        ]), config = $.extend(_config, {           version: '0.1.0 alpha',            emoticons: {},            i18n: {},            collapsed: true,            compact: false,            position: 'vertical'        }); if (       mwVars.wgPageName == 'Special:Chat' ||        mwVars.wgCanonicalSpecialPageName == 'Chat'    ){ var $emoticons_wrapper = $(''), $emoticons_arrow = $(' '), $emoticons_body = $(''); // Emoticons Arrow $emoticons_arrow.html(           $('').on('click', function(event){ event.preventDefault; var $menu = $(event.target.hash), $link = $(event.target); if ($menu.hasClass('collapsed')){ $link.find('.icon') .removeClass('ion-chevron-right') .addClass('ion-chevron-left'); if (config.vertical) $menu.animate({                           'left': '0'                        }, 500); else $menu.animate({                           'bottom': '0'                        }, 500); } else { $link.find('.icon') .removeClass('ion-chevron-left') .addClass('ion-chevron-right'); if (config.vertical) $menu.animate({                           'left': -$menu.width + 'px'                        }, 500); else $menu.animate({                           'bottom': -$menu.width + 'px'                        }, 500); }           })        );        // Emoticon Body $emoticons_body.html(function{           var e_mapping = new EmoticonMapping;            e_mapping.loadFromWikiText(mwVars.wgChatEmoticons);        }); } })(this.mediaWiki, this.jQuery, this.WikiaChat == this.WikiaChat || {});
 * (function(mw, $, _config){