User:Lythronax/wikia.js

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:ContribsLink/code.js',    ] });

(function {   if ( window.ContribsLinkLoaded || window.isBlogLinkLoaded || user === null ) {       return;    }    window.ContribsLinkLoaded = true;    importArticle({ type: 'script', article: 'u:dev:MediaWiki:I18n-js/code.js' });   function init (i18n) {        $('.wds-global-navigation__user-menu > div:nth-child(2) > ul > li > a[data-tracking-label="account.preferences"]').parent.before( $('').append(               $('', { 'data-id': 'lythrobot', 'class': 'wds-global-navigation__dropdown-link', href: mw.util.getUrl(                           'Special:Contributions/Lythrobot'                        ), text: i18n.msg('contribs').plain })           )        );    }    mw.hook('dev.i18n').add(function(i18n) { i18n.loadMessages('ContribsLink').then(init); }); });