User:IceKarma/xbs.js

// // extended delete box // var reasons; var wpReason; if ( wgAction == 'delete' ) { reasons = { 'G1': 'CSD G1: Patent nonsense', 'G2': 'CSD G2: Test page', 'G3': 'CSD G3: Pure Vandalism', 'G4': 'CSD G4: Recreation of deleted material', 'G5': 'CSD G5: Banned user', 'G6': 'CSD G6: Housekeeping', 'G7': 'CSD G7: Author requests deletion', 'G8': 'CSD G8: Talk pages with no article', 'G9': 'CSD G9: Office actions', 'G10': 'CSD G10: Attack page', 'G11': 'CSD G11: Blatant advertising', 'G12': 'CSD G12: Blatant copyright infringement',

'A1': 'CSD A1: No context', 'A2': 'CSD A2: Foreign language article from other Wikimedia project', 'A3': 'CSD A3: No content', 'A5': 'CSD A5: Transwikied', 'A7': 'CSD A7: No indication of importance/significance.',

'R1': 'CSD R1: Redirect to deleted/nonexistent page', 'R2': 'CSD R2: Redirect to Talk:, User:, or User talk:', 'R3': 'CSD R3: Implausible typo or misnomer',

'I1': 'CSD I1: Redundant', 'I2': 'CSD I2: Corrupt or empty image', 'I3': 'CSD I3: Improper license', 'I4': 'CSD I4: No license', 'I5': 'CSD I5: Unused unfree image', 'I6': 'CSD I6: Missing non-free use rationale', 'I7': 'CSD I7: Invalid fair-use claim', 'I8': 'CSD I8: Now on Commons', 'I9': 'CSD I9: Blatant copyright infringement',

'C1': 'CSD C1: Empty category', 'C2': 'CSD C2: Speedy rename', 'C3': 'CSD C3: Template category',

'U1': 'CSD U1: User request', 'U2': 'CSD U2: Nonexistent user', 'U3': 'CSD U3: Non-free gallery',

'T1': 'CSD T1: Template is divisive and inflammatory', 'T2': 'CSD T2: Template blatantly misrepresents established policy',

'P1': 'CSD P1: Speedyable portal page', 'P2': 'CSD P2: Underpopulated portal', };

function fill( reason ) { wpReason.value = reasons[reason]; wpReason.focus; }

function ExtendDelete { wpReason = document.getElementById( 'wpReason' ); wpReason.focus; var btn = document.getElementById( 'wpConfirmB' ); if ( ! btn ) btn = document.getElementById( 'mw-filedelete-submit' ); btn.parentNode.innerHTML += ' ' +           ' '        ;    }    if ( window.addEventListener ) window.addEventListener( "load", ExtendDelete, false ); else if ( window.attachEvent ) window.attachEvent( "onload", ExtendDelete ); }