User:Thehelpfulone/common.js: Difference between revisions

From Wikimedia Foundation Governance Wiki
Content deleted Content added
Thehelpfulone (talk | contribs)
+1
Thehelpfulone (talk | contribs)
+1
Line 1: Line 1:
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Thehelpfulone/global.js&action=raw&ctype=text/javascript');
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Thehelpfulone/global.js&action=raw&ctype=text/javascript');

jQuery( document ).ready( function( $ ) {
if(wgCanonicalNamespace == 'User' || wgCanonicalNamespace == 'User_talk') {
addPortletLink("p-navigation", "//wikimediafoundation.org/wiki/Special:UserRights/" + wgTitle, "User rights");
} else {
addPortletLink("p-navigation", "//wikimediafoundation.org/wiki/Special:UserRights", "User rights");
}
});


function prefixindex()
function prefixindex()

Revision as of 02:54, 27 January 2013

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

jQuery( document ).ready( function( $ ) {
  if(wgCanonicalNamespace == 'User' || wgCanonicalNamespace == 'User_talk') {
    addPortletLink("p-navigation", "//wikimediafoundation.org/wiki/Special:UserRights/" + wgTitle, "User rights");
  } else {
    addPortletLink("p-navigation", "//wikimediafoundation.org/wiki/Special:UserRights", "User rights");
  }
});

function prefixindex()
{
  addPortletLink("p-tb", "//wikimediafoundation.org/wiki/Special:Prefixindex/" + mw.config.get('wgPageName'), "View the Prefix Index");
}
addOnloadHook(prefixindex);
importScriptURI('//ru.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript');
importScriptURI('//en.wikipedia.org/w/index.php?title=User:Splarka/sysopdectector.js&action=raw&ctype=text/javascript');