User:MECU/br.js

// function brfixer { var txt = document.editform.wpTextbox1;

//replace txt.value = txt.value.replace(new RegExp('', 'gi'), ' '); txt.value = txt.value.replace(new RegExp('' ,'gi'), ' '); txt.value = txt.value.replace(new RegExp('', 'gi'), ' '); txt.value = txt.value.replace(new RegExp('', 'gi'), ' '); txt.value = txt.value.replace(new RegExp('', 'gi'), ' ');

// Add a tag to the summary box var txt = document.editform.wpSummary; var summary = "s fixed using the  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 }

addOnloadHook(function {    if(document.forms.editform) {        mw.util.addPortletLink('p-cactions', 'javascript:brfixer', '', 'ca-brfixer', 'Fixes s to ', , );    } }); //