In this article, we will explore the fascinating world of
User:MECU/br.js and all the implications that this entails. From its origins to its impact on today's society,
User:MECU/br.js has been a topic of great interest and controversy. Throughout history,
User:MECU/br.js has played a crucial role in different aspects of human life, influencing both culture and technology. Through this article, we will take an in-depth look at the different aspects of
User:MECU/br.js and how it has evolved over time. We are confident that this analysis will allow us to better understand the impact and relevance of
User:MECU/br.js in the contemporary world.
//<pre>
function brfixer() {
var txt = document.editform.wpTextbox1;
//replace
txt.value = txt.value.replace(new RegExp('<BR>', 'gi'), '<br />');
txt.value = txt.value.replace(new RegExp('<BR/>' ,'gi'), '<br />');
txt.value = txt.value.replace(new RegExp('<BR />', 'gi'), '<br />');
txt.value = txt.value.replace(new RegExp('</BR>', 'gi'), '<br />');
txt.value = txt.value.replace(new RegExp('<BR/ >', 'gi'), '<br />');
// Add a tag to the summary box
var txt = document.editform.wpSummary;
var summary = "<BR>s fixed using ]";
if (txt.value.indexOf(summary) == -1) {
if (txt.value.match(/?\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()', '<BR>', 'ca-brfixer', 'Fixes <BR>s to <br />', '', '');
}
});
//</pre>