User:Nigos/scripts/RandomCategory.js

This is an old revision of this page, as edited by Xeno (talk | contribs) at 13:33, 27 March 2018 (Xeno moved page User:Anchorvale/scripts/RandomCategory.js to User:Nigos/scripts/RandomCategory.js: Automatically moved page while renaming the user "Anchorvale" to "Nigos"). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/* This script is used to add a link to [[Special:Random/Category]].
 
 */
 
 mw.loader.using( [ 'mediawiki.util' ], function () {
 	mw.util.addPortletLink(
		'p-navigation',
		mw.util.getUrl( 'Special:Random/Category' ),
		'Random category',
		'n-randomcategory',
		'Load a random category',
		'i',
		'#n-sitesupport'
	);
 } );
 
 /* [[Category:Wikipedia scripts]]
 */