User:GerritH/global.js

mw.loader.load('//internal-soap.fandom.com/index.php?title=User:GerritH/scripts-ucp.js&action=raw&ctype=text/javascript'); //Quickbar and My Tools (function($, mw) { var c = mw.config.get([ 'wgPageName', 'wgScriptPath', 'wgCityId' ]); //Add links to My Tools $('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="' + c.wgScriptPath + '/wiki/Special:ListGroupRights">ListGroupRights</a></li>' + '<li><a href="' + c.wgScriptPath + '/wiki/Special:Log/rights">Log/rights</a></li>' + '<li><a href="' + c.wgScriptPath + '/wiki/Special:ListUsers">ListUsers</a></li>' + '<li><a href="' + c.wgScriptPath + '/wiki/Special:ListAdmins">ListAdmins</a></li>' + '<li><a href="' + c.wgScriptPath + '/wiki/Special:WhatLinksHere/' + c.wgPageName + '">WhatLinksHere</a></li>').insertBefore('.WikiaBarWrapper .tools-menu li:first'); //Add WikiConfig to Quickbar $('.tools').append('<li><a href="https://community.fandom.com/wiki/Special:WikiConfig/' + c.wgCityId + '">WikiConfig</a> </li>' + '<li><a target="_new" href="https://community.fandom.com/wiki/Special:WikiConfig/' + c.wgCityId + '/domains">domains</a></li>' + '<li><a target="_new" href="https://community.fandom.com/wiki/Special:WikiConfig/' + c.wgCityId + '/variables?variable=3">sitename</a></li>' + '<li><a target="_new" href="https://community.fandom.com/wiki/Special:WikiConfig/' + c.wgCityId + '/variables?variable=964">theme</a></li>' + '<li><a target="_new" href="https://community.fandom.com/wiki/Special:WikiConfig/' + c.wgCityId + '/close">close</a></li>' + '<li><a target="_new" href="https://community.fandom.com/wiki/Special:WikiConfig/' + c.wgCityId + '/changelog">changelog</a></li>'); }) (this.jQuery, this.mediaWiki);