User:Whytheonlyone/RequestDeletion.js

// mw.util.addPortletLink ('p-cactions', 'javascript:problem', 'pt-delete', 'Request deletion', '#pt-preferences' );

function problem{ var txt = document.editform; var advert = (via script) var reason = prompt("What page?"); var msgtext = ""; var summary = "Requesting deletion " + advert + ; document.editform.wpSummary.value = summary; document.editform.wpMinoredit.checked = true; if(txt.value.length > 0) txt.value += '\n'; txt.value += msgtext; document.editform.submit; }

//