User:GerritH/global.js

importArticles({   type: "script",    articles: [        'u:dev:MediaWiki:UCXSearchBar.js',        'u:dev:MediaWiki:AnchoredRollback/code.js',        'u:dev:MediaWiki:AllPagesHideRedirect/code.js',        'u:dev:MediaWiki:RecentChangesMultiple/code.2.js',        'u:dev:MediaWiki:RedirectManagement/code.js',        'u:dev:MediaWiki:MultiUpload.js',        'u:dev:MediaWiki:AjaxEditPreview.js'    ] }); //Quickbar and My Tools $(function { var c = mw.config.get([ 'wgPageName', 'wgScriptPath', 'wgCityId', 'wgSiteName' ]); //Add links to My Tools $('DoubleRedirects' + 'Global.js' + 'ListGroupRights' + 'Log/rights' + 'ListUsers</a></li>' + 'ListAdmins</a></li>' + 'WhatLinksHere</a></li>').insertBefore('.WikiaBarWrapper .tools-menu li:first'); $('div.wiki-tools.wds-button-group > div > div.wds-dropdown__content.wds-is-not-scrollable.wds-is-right-aligned > ul').prepend ('Statistics</a></li>' + 'MediaWiki:ImportJS</a></li>' + 'JSPages</a></li>' + //'MediaWiki:Fandomdesktop.js</a></li>' + 'MediaWiki:Fandomdesktop.css?action=edit</a></li>' + '<li><a href="' + c.wgScriptPath + '/wiki/MediaWiki:Wiki-navigation?action=edit">MediaWiki:Wiki-navigation?action=edit</a></li>' + '<li><a href="' + c.wgScriptPath + '/wiki/MediaWiki:Recentchangestext?action=history">MediaWiki:Recentchangestext?action=history</a></li>' + '<li><a href="' + c.wgScriptPath + '/wiki/Special:Announcements">Announcement</a></li>'); //Additions to Quickbar $('.tools').append('<li><a href="' + c.wgScriptPath + '/wiki/Special:PrefixIndex">Index</a></li>' + '<li><a href="' + c.wgScriptPath + '/wiki/Special:LongPages">Long</a></li>' + '<li><a href="' + c.wgScriptPath + '/wiki/Special:ShortPages">Short</a></li>' + '<li><a href="' + c.wgScriptPath + '/wiki/Special:Random">Random page</a></li>'); }) (this.jQuery, this.mediaWiki);