User:Casper2k3/Javascript/speedybutton.js

// function doSpeedyG1{ document.getElementById('jsWaitMessageBox').innerHTML = ' Nominating for Speedy Deletion (Nonsense - CSD:G1) - Please wait... '; doSpeedy("nonsense", "G1"); }; function doSpeedyG2{ document.getElementById('jsWaitMessageBox').innerHTML = ' Nominating for Speedy Deletion (Test - CSD:G2) - Please wait... '; doSpeedy("test", "G2"); }; function doSpeedyG3{ document.getElementById('jsWaitMessageBox').innerHTML = ' Nominating for Speedy Deletion (Vandalism - CSD:G3) - Please wait... '; doSpeedy("vandalism", "G3"); }; function doSpeedyG4{ document.getElementById('jsWaitMessageBox').innerHTML = ' Nominating for Speedy Deletion (Repost - CSD:G4) - Please wait... '; doSpeedy("repost", "G4"); }; function doSpeedyG5{ var bannedName = prompt("What is the name of the banned user?"); if(bannedName == "" || bannedName == null){ alert ("You didn't enter the name of the banned user! Speedy cancelled.") return; } document.getElementById('jsWaitMessageBox').innerHTML = ' Nominating for Speedy Deletion (Banned user [' + bannedName + '] - CSD:G5) - Please wait... '; var speedyTag = "banned|" + bannedName; doSpeedy(speedyTag, "G5"); }; function doSpeedyG6{ var pageName = prompt("What is the name of the page to merge history from?"); if(pageName == "" || pageName == null){ alert ("You didn't enter the name of the page! Speedy cancelled.") return; } document.getElementById('jsWaitMessageBox').innerHTML = ' Nominating for Speedy Deletion (History merge [' + pageName + '] - CSD:G6) - Please wait... '; var speedyTag = "histmerge|" + pageName; doSpeedy(speedyTag, "G6"); }; function doSpeedyG7{ document.getElementById('jsWaitMessageBox').innerHTML = ' Nominating for Speedy Deletion (Author requests delete - CSD:G7) - Please wait... '; doSpeedy("author", "G7"); }; function doSpeedyG8{ document.getElementById('jsWaitMessageBox').innerHTML = ' Nominating for Speedy Deletion (Talk page of non-existent article - CSD:G8) - Please wait... '; doSpeedy("talk", "G8"); }; function doSpeedyA1{ document.getElementById('jsWaitMessageBox').innerHTML = ' Nominating for Speedy Deletion (Empty / No context - CSD:A1) - Please wait... '; doSpeedy("empty", "A1"); }; function doSpeedyA3{ document.getElementById('jsWaitMessageBox').innerHTML = ' Nominating for Speedy Deletion (No content / Attempt to contact - CSD:A3) - Please wait... '; doSpeedy("contact", "A3"); }; function doSpeedyA6{ document.getElementById('jsWaitMessageBox').innerHTML = ' Nominating for Speedy Deletion (Attack page - CSD:A6) - Please wait... '; doSpeedy("attack", "A6"); }; function doSpeedyA7{ document.getElementById('jsWaitMessageBox').innerHTML = ' Nominating for Speedy Deletion (Bio (Vanity) - CSD:A7) - Please wait... '; doSpeedy("bio", "A7"); }; function doSpeedyG11{ document.getElementById('jsWaitMessageBox').innerHTML = ' Nominating for Speedy Deletion (Spam - CSD:G11) - Please wait... '; doSpeedy("spam", "G11"); }; function doSpeedyA8{ var urlSource = prompt("What is the web address of the copyvio?"); if(urlSource == "" || urlSource == null){ alert ("You didn't enter the web address of the copyvio! Speedy cancelled.") return; } document.getElementById('jsWaitMessageBox').innerHTML = ' Nominating for Speedy Deletion (Copyvio [' + urlSource + '] - CSD:A8) - Please wait... '; var speedyTag = "copyvio|url=" + urlSource; doSpeedy(speedyTag, "A8"); }; function doSpeedy(tag, reason){ document.location = document.URL + "?action=edit&autoedit=s/^/\n\n/&autosummary=Tagged for speedy deletion (Reason:CSD: " + reason + ") by Casper2k3 (WP:RCP)&autoclick=wpSave"; }; function speedyButton{ document.getElementById('jsArticleMessageBox').innerHTML = ' Nonsense  - Test  - Vandalism  - Repost  - Banned User  - <font color="#0000FF">History Merge </a> - <a href="javascript:doSpeedyG7"><font color="#0000FF">Author Requests Delete </a> - <a href="javascript:doSpeedyG8"><font color="#0000FF">Talk Page of Non-Existent Article </a> <a href="javascript:doSpeedyG11"><font color="#0000FF">Spam </a> - <a href="javascript:doSpeedyA1"><font color="#0000FF">Empty / No Context </a> - <a href="javascript:doSpeedyA3"><font color="#0000FF">No Content / Attempt to Contact </a> - <a href="javascript:doSpeedyA6"><font color="#0000FF">Attack </a> - <a href="javascript:doSpeedyA7"><font color="#0000FF">Bio (Vanity) </a> - <a href="javascript:doSpeedyA8"><font color="#0000FF">Copyvio </a> - [<a href="http://en.wikipedia.org/wiki/WP:CSD"><font color="#0000FF">CSD </a>] [<a href="http://en.wikipedia.org/wiki/WP:RCP"><font color="#0000FF">RCP </a>] '; }; //