User:Thehelpfulone/common.js: Difference between revisions
Content deleted Content added
+1 |
part of global.js |
||
(9 intermediate revisions by the same user not shown) | |||
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() |
||
Line 6: | Line 14: | ||
} |
} |
||
addOnloadHook(prefixindex); |
addOnloadHook(prefixindex); |
||
importScriptURI(' |
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'); |
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');