| User:-sche/common.js Jul 22nd 2013, 23:50, by -sche Definition from Wiktionary, the free dictionary | | | | Line 1: | Line 1: | | − | // If we're at a deletion-page named [[i...]], then set | | | − | // the deletion-message and auto-click: | | | − | addOnloadHook | | | − | ( function () | | | − | { if(! /^i?/.test(mediaWiki.config.get('wgPageName'))) | | | − | return; | | | − | if(mediaWiki.config.get('wgAction') != 'delete') | | | − | return; | | | − | var wpReason = document.getElementById('wpReason'); | | | − | wpReason.value = | | | − | 'per Pereru this inflected form is a misspelling created in error' + | | | − | wpReason.value.replace(/\]\].*/, ']]'); | | | − | document.getElementById('wpConfirmB').click(); | | | − | } | | | − | ); | |
 |