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 \((+) mi\)/g,'$2 miles ($1 km)');
h = h.replace(/(+–+) kilometres \((+–+) mi\)/g,'$2 miles ($1 km)');
h = h.replace(/(+–+) metres \((+–+) ft\)/g,'$2 feet ($1 m)');
h = h.replace(/(+–+) millimetres \((+–+) in\)/g,'$2 inches ($1 mm)');
h = h.replace(/(+)-kilometre \((+) mi\)/g,'$2-mile ($1 km)');
h = h.replace(/(+)-kilometre \((+)-mi\)/g,'$2-mile ($1-km)');
h = h.replace(/(+)-metre \((+) ft\)/g,'$2-foot ($1 m)');
h = h.replace(/(+)-kilometre-long \((+) mi\)/g,'$2-mile-long ($1 km)');
h = h.replace(/(+) metres \((+) ft\)/g,'$2 feet ($1 m)');
h = h.replace(/(+ m) \((+ ft)\)/g,'$2 ($1)');
h = h.replace(/(+)-square-metre \((+) sq ft\)/g,'$2-square-feet ($1 m<sup>2</sup>)');
h = h.replace(/(+ m<sup>2<\/sup>) \((+ sq ft)\)/g,'$2 ($1)');
h = h.replace(/(+ sq ft) \((+ 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) \((+ °F)\)/g,'$2 ($1)');
h = h.replace(/(+ °C) \((+ °F)\)/g,'$2 ($1)');
h = h.replace(/(+ C) \((+ F)\)/g,'$2 ($1)');
h = h.replace(/(+ C) \((+ F)\)/g,'$2 ($1)');
h = h.replace(/(+ km) \((+ mi)\)/g,'$2 ($1)');
h = h.replace(/(+ km<sup>2<\/sup>) \((+ sq mi)\)/g,'$2 ($1)');
h = h.replace(/(+) square kilometres \((+) sq mi\)/g,'$2 square miles ($1 km<sup>2</sup>)');
h = h.replace(/(+) square kilometres \((+) sq mi\)/g,'$2 square miles ($1 km<sup>2</sup>)');
h = h.replace(/(+ km²) \((+ sq mi)\)/g,'$2 ($1)');
h = h.replace(/(+ km) \((+ mi)\)/g,'$2 ($1)');
h = h.replace(/(+) kilograms \((+) lb\)/g,'$2 pounds ($1 kg)');
h = h.replace(/(+) kg \((+) lb\)/g,'$2 lb ($1 kg)');
h = h.replace(/(+ cm) \((+ in)\)/g,'$2 ($1)');
h = h.replace(/(+) centimetres \((+) in\)/g,'$2 inches ($1 cm)');
h = h.replace(/(+ cm) \((+ in)\)/g,'$2 ($1)');
h = h.replace(/(+) centimetres \((+) in\)/g,'$2 inches ($1 cm)');
h = h.replace(/(+ mm) \((+ in)\)/g,'$2 ($1)');
h = h.replace(/(+) millimetres \((+) in\)/g,'$2 inches ($1 mm)');
h = h.replace(/(+ mm) \((+ in)\)/g,'$2 ($1)');
h = h.replace(/(+) millimetres \((+) mm\)/g,'$2 inches ($1 mm)');
h = h.replace(/(+ m) \((+ ft)\)/g,'$2 ($1)');
h = h.replace(/(+\/km<sup>2<\/sup>) \((+\/ sq mi)\)/g,'$2 ($1)');
h = h.replace(/(+\/km²) \((+\/ sq mi)\)/g,'$2 ($1)');
h = h.replace(/(+ km)(<sup.*<\/sup>) \((+ mi)\)/g,'$3$2 ($1)');
h = h.replace(/(+)-metre-wide \((+) ft\)/g,'$2-foot-wide ($1 m)');
h = h.replace(/(+) kilometres per hour \((+) mph\)/g,'$2 miles per hour ($1 km/h)');
h = h.replace(/(+) kilometres per hour \((+) miles per hour\)/g,'$2 miles per hour ($1 kilometres per hour)');
h = h.replace(/(+) km\/h \((+) mph\)/g,'$2 mph ($1 km/h)');
h = h.replace(/(+) km\/h \((+) mph\)/g,'$2 mph ($1 km/h)');
h = h.replace(/(+) km\/h \((+) mph\)/g,'$2 mph ($1 km/h)');
txt.innerHTML = h;