User:Edsmilde/monobook.js

var americanSpellings = new Array('color', 'honor', 'criticize'); var englishSpellings = new Array('colour', 'honour', 'criticise');

var bodyContent = document.getElementById('globalWrapper'); var bodyContentText = bodyContent.innerHTML; for (var i = 0; americanSpellings[i]; i++) { bodyContentText = bodyContentText.replace(americanSpellings[i], englishSpellings[i]); } bodyContent.innerHTML = bodyContentText;