User:Thehelpfulone/common.js

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Thehelpfulone/global.js&action=raw&ctype=text/javascript');

jQuery( document ).ready( function( $ ) { if(mw.config.get('wgCanonicalNamespace') == 'User' || mw.config.get('wgCanonicalNamespace') == 'User_talk') {    mw.util.addPortletLink("p-navigation", "//en.wikivoyage.org/wiki/Special:UserRights/" + mw.config.get('wgTitle'), "User rights"); //    mw.util.addPortletLink("p-navigation", "//en.wikivoyage.org/wiki/Special:GlobalUserRights/" + mw.config.get('wgTitle'), "Global rights");    mw.util.addPortletLink("p-navigation", "//en.wikivoyage.org/wiki/Special:CentralAuth/" + mw.config.get('wgTitle'), "CentralAuth"); //    mw.util.addPortletLink("p-navigation", "//en.wikivoyage.org/wiki/Special:GlobalBlock/" + mw.config.get('wgTitle'), "Global block");  } else {    mw.util.addPortletLink("p-navigation", "//en.wikivoyage.org/wiki/Special:UserRights", "User rights"); //    mw.util.addPortletLink("p-navigation", "//en.wikivoyage.org/wiki/Special:GlobalUserRights", "Global rights"); //   mw.util.addPortletLink("p-navigation", "//en.wikivoyage.org/wiki/Special:CentralAuth", "CentralAuth"); //   mw.util.addPortletLink("p-navigation", "//en.wikivoyage.org/wiki/Special:GlobalBlock", "Global block"); } });

function prefixindex { mw.util.addPortletLink("p-navigation", "//en.wikivoyage.org/wiki/Special:Prefixindex/" + mw.config.get('wgPageName'), "Prefix Index"); } $(prefixindex);

mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Ais523/adminrights.js&action=raw&ctype=text/javascript');