User:SimonKSK/monobook.js

importScript('User:Mr.Z-man/refToolbar.js');

importScript('User:AzaToth/twinkle.js');

importScript('User:Ioeth/friendly.js');

importScript('User:Lupin/recent2.js');

importScript("User:Smith609/toolbox.js");

/////////////////////////////////////////////////////////////////////////////////////////////////////////// //Created by User:Magnus animum to make MOTD maintenance work more easy. // //Note: To close nominations using this script, it MUST be done section by section. If you want to mass // //close, I suggest that you do it the old-fashioned way — manually typing the outcome of the nomination. // /////////////////////////////////////////////////////////////////////////////////////////////////////////// function closemottonom { result = prompt("What was the result?"); reason = prompt("Why?"); document.editform.wpTextbox1.value = document.editform.wpTextbox1.value += "\n" + "" + result + ": " + reason + ". " + "~" + "~" + "~" + "~"; document.editform.wpSummary.value = document.editform.wpSummary.value + result + ": " + reason; document.editform.wpMinoredit.checked = false; }

function closemottotab { addTab("javascript:closemottonom", "close nom", "ca-close nom", "close nom", "close nom"); akeytt; }

addOnloadHook(function { if (document.title.indexOf("Editing Wikipedia:Motto of the day/Nominations") != -1) {  addOnloadHook(closemottotab);  } });

//