User:Minecrafterman126/hydra.js

/** subpages **/ $( function {	var NSWithoutSubpages = [ -1, 6, 8, 12, 13, 14, 15, 104, 105 ];	if ( NSWithoutSubpages.indexOf( mw.config.get( 'wgNamespaceNumber' ) ) === -1 ) {		var subpagesLink = mw.util.getUrl( 'Special:PrefixIndex/' + mw.config.get( 'wgPageName' ) + '/' );		mw.util.addPortletLink( 'p-tb', subpagesLink, 'Subpages', 't-subpages', 'Subpages of this page' );	} } ); /** userRights (for Bureaucrats only) **/ addOnloadHook( function {	if ( wgNamespaceNumber != 2 && wgNamespaceNumber != 3 ) { // User or User talk		return;	}	var user = wgTitle.split( '/' )[0];	var url = wgScript + '?title=Special:UserRights&user=' + encodeURIComponent( user );	addPortletLink( 'p-tb', url, 'User rights', 't-userrights', 'List of user groups for ' + user ); });