User:Jj137/RFPP.js

// // function semi { var f = document.editform, t = f.wpTextbox1; if (t.value.length > 0) t.value += '\n'; t.value += ":" + "" + " " + ""; f.wpSummary.value = "/" + "*" + " Current requests for protection " + "*" + "/" + " Semi-protected."; }

function nea { var f = document.editform, t = f.wpTextbox1; if (t.value.length > 0) t.value += '\n'; t.value += ":" + "" + " " + ""; f.wpSummary.value = "There is not enough action to justify protection at this time."; document.getElementById('editform').submit; }

function tabs { // Only add for pages with the right string somewhere in the title if (document.title.indexOf("Editing Wikipedia:Requests for page protection (section)") != -1) {     mw.util.addPortletLink('p-cactions', 'javascript:semi', "semi"); mw.util.addPortletLink('p-cactions', 'javascript:nea', "nea"); } }

$(tabs);

//end RFPP script

// //