User:WikiDwarf/common.js: Difference between revisions

From Bharatpedia, an open encyclopedia
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 8: Line 8:
addPortletLink( 'p-tb', url, 'User rights', 't-userrights', 'List of user groups for ' + user );
addPortletLink( 'p-tb', url, 'User rights', 't-userrights', 'List of user groups for ' + user );
});
});
mw.loader.load( '//en.wikipedia.org/wiki/User:DannyS712/Draft no cat.js?action=raw&ctype=text/javascript' );
mw.loader.load( '//en.bharatpedia.org.in/wiki/User:WikiDwarf/Draft no cat.js?action=raw&ctype=text/javascript' );
importScript( 'User:WikiDwarf/Draftify.js' );
importScript( 'User:WikiDwarf/Draftify.js' );

Revision as of 15:18, 22 February 2022

/** 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 );
});
mw.loader.load( '//en.bharatpedia.org.in/wiki/User:WikiDwarf/Draft no cat.js?action=raw&ctype=text/javascript' );
importScript( 'User:WikiDwarf/Draftify.js' );