User:Neier/monobook.js/soccer

//function to do subst:nft and subst:fc search/replace ( based on above, WikiProject User scripts/Scripts/Replace ) function wpTextboxFBReplace {  var txt = document.editform.wpTextbox1; txt.value = txt.value.replace(/\{\{[aA]fc\|/gi, '{{subst:afc|' ); txt.value = txt.value.replace(/\{\{[aA]fc2\|/gi, '{{subst:afc2|' ); txt.value = txt.value.replace(/\{\{[fF]c\|/gi, '{{subst:fc|' ); txt.value = txt.value.replace(/\{\{[Nn]ft\|/gi, '{{subst:nft|' );

//  txt.value = txt.value.replace(new RegExp("{{[fF]c", "mg"), "{{subst:fc"); //  txt.value = txt.value.replace(new RegExp("{{[nN]ft", "mg"), "{{subst:nft");

document.editform.wpSummary.value = 'subst: of nft and fc templates'; document.editform.wpMinoredit.checked = true; document.editform.wpWatchthis.checked = false;

}