User:MECU/syl.js

// function sylfixer { var txt = document.editform.wpTextbox1; //replace if (new RegExp('(\]\]\s\[\Single Year Links fixed using SYL fixer";	if (txt.value.indexOf(summary) == -1) {		if (txt.value.match(/[^\*\/\s][^\/\s]?\s*$/)) {			txt.value += " | ";		}		txt.value += summary;	}   // Press the diff button to check it    document.editform.wpDiff.click } $(function  {    if(document.forms.editform) {        mw.util.addPortletLink('p-cactions', 'javascript:sylfixer', 'SYL', 'ca-sylfixer', 'Fixes Single Year Links per MOS:SYL', , );    } }); //