MediaWiki:Gadget-CleanDeleteReasons.js

// Written and maintained by User:Mike.lifeguard jQuery( document ).ready( function {	if ( mw.config.get( 'wgAction' ) == 'delete' ) {		var wpReason = document.getElementById( 'wpReason' );		if ( !wpReason || !wpReason.firstElementChild ) {			return;		}		var regexp = /(content was|page was empty|content before blanking was)/i;		if ( regexp.test( wpReason.firstElementChild.value ) ) {			wpReason.firstElementChild.value = '';		}	} } );