MediaWiki:Gadget-CleanDeleteReasons.js
This is the system messages namespace, only admins may edit these, use the talk pages to suggest changes if you're not an admin. |
Note: After saving, changes may not occur immediately. Click here to learn how to bypass your browser's cache.
- Google Chrome / Mozilla / Firefox / Safari: hold down Shift while clicking Reload, or press Ctrl-Shift-R (Cmd-Shift-R on Apple Mac);
- Internet Explorer: hold Ctrl while clicking Refresh, or press Ctrl-F5;
- Konqueror: simply click the Reload button, or press F5;
- Opera users may need to completely clear their cache in Tools→Preferences.
// Written and maintained by [[User:Mike.lifeguard]]
jQuery( document ).ready( function() {
if ( mw.config.get( 'wgAction' ) == 'delete' ) {
var wpReason = document.getElementById( 'wpReason' );
if ( !wpReason ) {
return;
}
var regexp = /(content was|page was empty|content before blanking was)/i;
if ( regexp.test( wpReason.value ) ) {
wpReason.value = '';
}
}
} );