User:C.Syde65/wikia.js

// 09:11, July 8, 2017 (UTC) // 

//Add extra AccountNav options /* */   if (navLinks) return; var user = mw.util.wikiUrlencode(mw.config.get('wgUserName')), links = { contribs: { text: 'My Contributions', url: '/wiki/Special:Mycontributions' },       blogs: { text: 'My Blogs', url: '/wiki/User_blog:' + user },       watchlist: { text: 'My Watchlist', url: '/wiki/Special:Watchlist' },       followed: { text: 'My Followed Pages', url: '/wiki/Special:Following' }   },        html = '', navLinks = true; for (var i in links) { html += '' + links[i].text + ''; }   document.querySelector('.wds-global-navigation__user-menu .wds-list > li:nth-child(2)').insertAdjacentHTML('afterEnd', html); });
 * (function {

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