User:Dlrohrer2003/randab.js

/* Random Disambig Link * ============================================================================= * Description: *  Add a link to the navigation portlet that loads a random disabiguation page * * Author: *  User:Dlrohrer2003 */

mw.loader.using( [ 'mediawiki.util' ], function {

mw.util.addPortletLink(		'p-navigation',		'/wiki/Special:RandomInCategory/All_disambiguation_pages',		'Random disambig',		'n-random-disambig',		'Load a random disambiguation page'	);

document .querySelector( '#n-random-disambig a' ) .classList.add( 'mw-disambig' ); });