User:Omni Flames/closerm.js

// closerm.js - written by User:Omni Flames, modified from // User:King of Hearts/closetfd.js by User:King of Hearts] // [[Wikipedia:WikiProject User scripts/Scripts/CloseAFD.js by User:Johnleemk // and User:Lifebaka/closedrv.js by User:Lifebaka

function autorm_result {	var close = prompt("Result of debate?") var f = document.editform, t = f.wpTextbox1; t.value = t.value.split(']] ====').join(']] ====' + '\n' + '' + '\ + '\ + '\ + close + ' (non-admin closure) ' '\ + '\ + '\ + '.'); t.value += ""; f.wpSummary.value += "Closing debate; result was " + close; }

function autorm_add_rm_tabs {		mw.util.addPortletLink('p-cactions', 'javascript:autorm_result', "close requested move"); } $(autorm_add_rm_tabs);