MediaWiki:Gadget-CleanDeletions.js

//Written and maintained by User:Mike.lifeguard function deletemods{ var wpReason = document.getElementById("wpReason"); if (!wpReason) return; var regexp = /(content was|page was empty|content before blanking was|page was empty)/i; if (regexp.test(wpReason.value)){ wpReason.value = ""; } } if (wgAction == "delete") addOnloadHook(deletemods);