User:GerritH/global.js

importArticles({   type: 'script',    articles: [ 'MediaWiki:RecentChangesMultiple/code.2.js', 'MediaWiki:RedirectManagement/code.js', 'MediaWiki:MultiUpload.js', 'MediaWiki:AjaxEditPreview.js', 'MediaWiki:AlwaysShowBottomBar.js',    ] }); mw.loader.load('//internal-soap.fandom.com/index.php?title=User:GerritH/scripts-ucp.js&action=raw&ctype=text/javascript');

(function($, mw) { var c = mw.config.get([ 'wgUserName', 'wgPageName', 'wgBlankImgUrl', 'wgCanonicalSpecialPageName', 'wgArticlePath', 'wgScriptPath', 'wgTitle', 'wgAction', 'wgCanonicalNamespace', 'wgNamespaceNumber', 'wgUserGroups', 'wgCityId','wgSiteName' ]), blorp = c.wgScriptPath + '/wiki/', escapedPage = encodeURIComponent(c.wgPageName), href, link; //Add links to toolbar $('Multiwiki Title Finder' + 'Global.css' + 'Global.js' + 'MediaWiki:ImportJS' + 'JSPages</a></li>' + 'MediaWiki:Fandomdesktop.js</a></li>' + 'MediaWiki:Fandomdesktop.css?action=edit</a></li>' + 'MediaWiki:Common.js</a></li>' + 'MediaWiki:Common.css?action=edit</a></li>' + 'MediaWiki:Wikia.css?action=edit</a></li>' + 'MediaWiki:Wiki-navigation?action=edit</a></li>' + 'MediaWiki:Recentchangestext?action=history</a></li>' + '<li><a href="' + blorp + 'Special:ListGroupRights">ListGroupRights</a></li>' + '<li><a href="' + blorp + 'Special:Log/rights">Log/rights</a></li>' + '<li><a href="' + blorp + 'Special:ListUsers">ListUsers</a></li>' + '<li><a href="' + blorp + 'Special:ListAdmins">ListAdmins</a></li>' + '<li><a href="' + blorp + 'Special:WhatLinksHere/' + c.wgPageName + '">WhatLinksHere</a></li>')   .insertBefore('.WikiaBarWrapper .tools-menu li:first'); $('.tools').append('<li style="font-weight: bold;"><a href="https://community.fandom.com/wiki/Special:WikiConfig/' + c.wgCityId + '">Config</a> ' + '(<a target="_new" href="https://community.fandom.com/wiki/Special:WikiConfig/' + c.wgCityId + '/domains">domain</a> - ' + '<a target="_new" href="https://community.fandom.com/wiki/Special:WikiConfig/' + c.wgCityId + '/variables?variable=3">name</a> - ' +  '<a target="_new" href="https://community.fandom.com/wiki/Special:WikiConfig/' + c.wgCityId + '/variables?variable=964">theme</a> - ' +  '<a target="_new" href="https://community.fandom.com/wiki/Special:WikiConfig/' + c.wgCityId + '/close">close</a> - ' +  '<a target="_new" href="https://community.fandom.com/wiki/Special:WikiConfig/' + c.wgCityId + '/changelog">clog</a>)</li>'); }) (this.jQuery, this.mediaWiki);