MediaWiki Developer's Handbook/Add JavaScript/Hiding unwanted information on the deletion form

JS page was empty (content before blanking was)/i;	//create a regexp object which											//matches the default delete reasons	if (regexp.test(wpReason.value)){	//if the regexp object we created tests true against the value						//of wpReason (which is a DOM element)...		wpReason.value = "";		//then set the value of wpReason to an empty string	} } if (wgAction == 'delete') addOnloadHook(cleanDeleteReason);	//if the current action is deleting, then hook onto page load								//and run the cleanDeleteReason function)