for(var i = 0;i < 100; i++){
var b = document.getElementById("collapseButton" + i);
if(b === null || b === undefined){
break;
}
b.click();
}
var txt = document.getElementById('mw-content-text' );
var h = txt.innerHTML.replace(/(+) kilometres \((+)&nbsp;mi\)/g,'$2 miles ($1 km)');
h = h.replace(/(+–+) kilometres \((+–+)&nbsp;mi\)/g,'$2 miles ($1 km)');
h = h.replace(/(+–+) metres \((+–+)&nbsp;ft\)/g,'$2 feet ($1 m)');
h = h.replace(/(+–+) millimetres \((+–+)&nbsp;in\)/g,'$2 inches ($1 mm)');
h = h.replace(/(+)-kilometre \((+)&nbsp;mi\)/g,'$2-mile ($1 km)');
h = h.replace(/(+)-kilometre \((+)-mi\)/g,'$2-mile ($1-km)');
h = h.replace(/(+)-metre \((+)&nbsp;ft\)/g,'$2-foot ($1 m)');
h = h.replace(/(+)-kilometre-long \((+)&nbsp;mi\)/g,'$2-mile-long ($1 km)');
h = h.replace(/(+) metres \((+)&nbsp;ft\)/g,'$2 feet ($1 m)');
h = h.replace(/(+ m) \((+&nbsp;ft)\)/g,'$2 ($1)');
h = h.replace(/(+)-square-metre \((+)&nbsp;sq ft\)/g,'$2-square-feet ($1 m<sup>2</sup>)');
h = h.replace(/(+ m<sup>2<\/sup>) \((+&nbsp;sq ft)\)/g,'$2 ($1)');
h = h.replace(/(+&nbsp;sq&nbsp;ft) \((+&nbsp;m<sup>2<\/sup>)\)/g,'$2 ($1)');
h = h.replace(/(+) per square kilometre \((+)\/sq mi\)/g,'$2 per square mile ($1/km<sup>2</sup>)');
h = h.replace(/(+) people per square kilometre \((+)\/sq mi\)/g,'$2 people per square mile ($1/km<sup>2</sup>)');
h = h.replace(/(+ °C) \((+&nbsp;°F)\)/g,'$2 ($1)');
h = h.replace(/(+&nbsp;°C) \((+&nbsp;°F)\)/g,'$2 ($1)');
h = h.replace(/(+ C) \((+ F)\)/g,'$2 ($1)');
h = h.replace(/(+&nbsp;C) \((+&nbsp;F)\)/g,'$2 ($1)');
h = h.replace(/(+ km) \((+&nbsp;mi)\)/g,'$2 ($1)');
h = h.replace(/(+&nbsp;km<sup>2<\/sup>) \((+&nbsp;sq&nbsp;mi)\)/g,'$2 ($1)');
h = h.replace(/(+) square kilometres \((+)&nbsp;sq&nbsp;mi\)/g,'$2 square miles ($1 km<sup>2</sup>)');
h = h.replace(/(+)&nbsp;square&nbsp;kilometres \((+)&nbsp;sq&nbsp;mi\)/g,'$2 square miles ($1 km<sup>2</sup>)');
h = h.replace(/(+&nbsp;km²) \((+&nbsp;sq&nbsp;mi)\)/g,'$2 ($1)');
h = h.replace(/(+&nbsp;km) \((+&nbsp;mi)\)/g,'$2 ($1)');
h = h.replace(/(+) kilograms \((+)&nbsp;lb\)/g,'$2 pounds ($1 kg)');
h = h.replace(/(+) kg \((+)&nbsp;lb\)/g,'$2 lb ($1 kg)');
h = h.replace(/(+&nbsp;cm) \((+&nbsp;in)\)/g,'$2 ($1)');
h = h.replace(/(+)&nbsp;centimetres \((+)&nbsp;in\)/g,'$2 inches ($1 cm)');
h = h.replace(/(+ cm) \((+&nbsp;in)\)/g,'$2 ($1)');
h = h.replace(/(+) centimetres \((+)&nbsp;in\)/g,'$2 inches ($1 cm)');
h = h.replace(/(+&nbsp;mm) \((+&nbsp;in)\)/g,'$2 ($1)');
h = h.replace(/(+)&nbsp;millimetres \((+)&nbsp;in\)/g,'$2 inches ($1 mm)');
h = h.replace(/(+ mm) \((+&nbsp;in)\)/g,'$2 ($1)');
h = h.replace(/(+) millimetres \((+)&nbsp;mm\)/g,'$2 inches ($1 mm)');
h = h.replace(/(+&nbsp;m) \((+&nbsp;ft)\)/g,'$2 ($1)');
h = h.replace(/(+\/km<sup>2<\/sup>) \((+\/&nbsp;sq&nbsp;mi)\)/g,'$2 ($1)');
h = h.replace(/(+\/km²) \((+\/&nbsp;sq&nbsp;mi)\)/g,'$2 ($1)');
h = h.replace(/(+&nbsp;km)(<sup.*<\/sup>) \((+&nbsp;mi)\)/g,'$3$2 ($1)');
h = h.replace(/(+)-metre-wide \((+)&nbsp;ft\)/g,'$2-foot-wide ($1 m)');
h = h.replace(/(+) kilometres per hour \((+)&nbsp;mph\)/g,'$2 miles per hour ($1 km/h)');
h = h.replace(/(+) kilometres per hour \((+)&nbsp;miles per hour\)/g,'$2 miles per hour ($1 kilometres per hour)');
h = h.replace(/(+) km\/h \((+)&nbsp;mph\)/g,'$2 mph ($1 km/h)');
h = h.replace(/(+)&nbsp;km\/h \((+)&nbsp;mph\)/g,'$2 mph ($1 km/h)');
h = h.replace(/(+) km\/h \((+) mph\)/g,'$2 mph ($1 km/h)');
txt.innerHTML = h;