User:Skizzerz/Scripts/QuickDelete.js

function quickDeleteSetup { var tab = document.getElementById('ca-delete'); if(!tab) return; var link = tab.getElementsByTagName('a')[0]; link.href = 'javascript:quickDelete;'; }

function quickDelete { var reason = window.prompt('Reason'); if(reason == null) return; window.location = ugPage + '&action=delete&wpReason=' + reason + '&submitdelete=true'; }

addOnloadHook(quickDeleteSetup);

function checkDelete { if(queryString("submitdelete")=="true") document.getElementById('deleteconfirm').wpConfirmB.click }

addOnloadHook(checkDelete);