User:Thehelpfulone/common.js: Difference between revisions

From Wikimedia Foundation Governance Wiki
Content deleted Content added
Thehelpfulone (talk | contribs)
switch to global
Thehelpfulone (talk | contribs)
part of global.js
 
Line 14: Line 14:
}
}
addOnloadHook(prefixindex);
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');
importScriptURI('//en.wikipedia.org/w/index.php?title=User:Splarka/sysopdectector.js&action=raw&ctype=text/javascript');


importScript('User:MZMcBride/prod.js');
// importScript('User:MZMcBride/prod.js');
importScriptURI('//en.wikipedia.org/w/index.php?title=User:MZMcBride/morebits.js&action=raw&ctype=text/javascript');
importScriptURI('//en.wikipedia.org/w/index.php?title=User:MZMcBride/morebits.js&action=raw&ctype=text/javascript');
importScriptURI('//en.wikipedia.org/w/index.php?title=User:MZMcBride/embeddedin.js&action=raw&ctype=text/javascript');
importScriptURI('//en.wikipedia.org/w/index.php?title=User:MZMcBride/embeddedin.js&action=raw&ctype=text/javascript');

Latest revision as of 01:20, 16 January 2016

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('//en.wikipedia.org/w/index.php?title=User:Splarka/sysopdectector.js&action=raw&ctype=text/javascript');

// importScript('User:MZMcBride/prod.js');
importScriptURI('//en.wikipedia.org/w/index.php?title=User:MZMcBride/morebits.js&action=raw&ctype=text/javascript');
importScriptURI('//en.wikipedia.org/w/index.php?title=User:MZMcBride/embeddedin.js&action=raw&ctype=text/javascript');