The Honestificator
Thursday, March 3rd, 2011 - 7:58 pm - I've made a thing
Ben Goldacre wrote me an email, “Apparently the govt have leaned on the bbc to use the word “savings” instead of “cuts”. be nice if someone made something that resubstituted “cuts” back in. “thehonestificator”. whatever.”
Two seconds of googling for “search replace bookmarket” finds me this script by sixthgear, which I can quickly hack to make the BBC tell the truth.
1. Drag The Honestificator to your bookmarks bar in your browser
2. Go to a BBC page full of Newspeak
3. Press The Honestificator to let truth once again speak freely

2nd line – “savings” instead of “cuts”.
Just need a Nauhtie version.
First improvment is to add
htmlreplace(‘saving’, ‘cut’); at the end
and change the regexp from
RegExp(a,’gi’),b
to
RegExp(a,’g'),b otherwise you get
‘Cuts’ everywhere rather than preserving the case.
Still trying to work out how to fix the tag ;)
Still trying to work out how to fix the <title> tag, that should be
javascript:function%20htmlreplace(a,b,element){if(!element){element=document.body;document.title=document.title.replace(new%20RegExp(a,’g'),b)}var%20nodes=element.childNodes;for(var%20n=0;n<nodes.length;n++){if(nodes[n].nodeType==Node.TEXT_NODE){nodes[n].textContent=nodes[n].textContent.replace(new%20RegExp(a,'g'),b);}else{htmlreplace(a,b,nodes[n]);}}}htmlreplace('Saving','Cut');htmlreplace('saving','cut');
Fixes capitalization issues and changes the document title whilst I'm at it.
Did it!
Change
if (!element) element=document.body
to
if (!element) element=document
(as document.title is a sibling of document.body in the DOM)