User:Kineticcat/colour.js

$( document ).ready( function fx {   if(window.find) {      while(window.find(/ [cC]olors? /)) {

var rng=window.getSelection.getRangeAt(0); rng.deleteContents;

rng.insertNode(document.createTextNode(' colour '));

}   } else if(document.body.createTextRange) { var rng=document.body.createTextRange; while(rng.findText(/ [cC]olors? /)) {       rng.pasteHTML(' colour '); }   }  });