MediaWiki:Gadget-CheckUserMenu.js

/* Add a drop-down menu for Special:CheckUser reasons */

function checkUserOther(name) { if (name == 'Other') { var menu = document.getElementById('checkreason'); var field = ''; menu.outerHTML = field; } } $(function {	if (mw.config.get('wgCanonicalSpecialPageName') === 'CheckUser') {		var field = document.getElementById('checkreason');		var menu = 'Please select a reason... Routine new user check Suspected sockpuppet account Matching a vandal account Other ';		field.outerHTML = menu;	} });