User:Bardic Wizard/speedy and prod.js

/*WARNING: UNTESTED SCRIPT! DO NOT USE UNLESS YOU ARE PREPARED TO TAKE THE BLAME!!!! THIS TOOL WILL MAKE EDITS AND SAVE THEM! Before using this script, please read and understand all related policies: Speedy deletion policy, Proposed deletion policy, and WP:DELETE. You are responsible for any and all edits made with this tool. DO NOT USE THIS TOOL IF: you are unsure about the suitability of deletion, or if you have not read the Speedy deletion policy, Proposed deletion policy, and WP:DELETE. Standard disclaimer: You take full responsibility for any action you perform using this tool. You must understand Wikipedia policies and use this tool within these policies, or risk being blocked from editing. From Wp:WikiProject User scripts/Scripts/POV tool and Wp:WikiProject User scripts/Scripts/warn.js, modified for my specific things. It will offer 2 different deletion methods, prod and speedy deletion. The prompt for the speedy criteria is required as is the reason for prod.*/ function dospeedydeltag { var temp=prompt("Speedy delete criterion-- What does this fall under? Note: Please use the (letter)(number) abbreviation, not any other format, and do not include 'db-' "); //var titl = prompt("Title?"); //var reas=prompt(""); document.editform.wpTextbox1.value = '{' + '{' + 'db-'+ temp +'}}' + '\n\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = 'Tagging for deletion under criteria WP:' + temp + " using script."; document.editform.wpMinoredit.checked = false; document.editform.submit; } addOnloadHook(function { /*if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {     return;  }*/  if (document.editform) {     mw.util.addPortletLink("p-cactions", "javascript:dospeedydeltag", "Speedy Deletion Nom", "ca-deltag", "Add speedy deletion tag to this article", "");  } }); function doproddeltag { //var temp=prompt("Speedy delete criteria"); //var titl = prompt("Title?"); var reas=prompt("Reason?"); document.editform.wpTextbox1.value = '{' + '{' + 'prod' + '|reason='+reason+'}}' + '\n\n' + document.editform.wpTextbox1.value; document.editform.wpSummary.value = "Proposing deletion using script. Reason: "+ reas; document.editform.wpMinoredit.checked = false; document.editform.submit; } addOnloadHook(function { //if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") { //     return; //}  if (document.editform) {     mw.util.addPortletLink("p-cactions", "javascript:doproddeltag", "Prod", "ca-prodtag", "Add prod tag to this article", "");  } });