Things to do next; defeat Google’s auto linking
by xinit • 2/23/2005 • geek • 0 Comments
A little piece of javascript is going to be put into my templates here shortly, thanks to ThreadWatch. You’re not getting extra advertising linkage without cutting me in on the deal. I don’t care if you’re Google or Microsoft, it’s a dumb idea. I had trouble accepting Trillian linking words in IM to Wikipedia lookups, but that’s sufficiently geeky to allow it to pass my filters.
// AutoBlink
// Puts Google's Autolink on the Blink :)
// (c) 2005 Chris Ridings http://www.searchguild.com
// Redistribute at will but leave this message intact
var linkcount;
function checklinks() {
if (!(linkcount==document.links.length)) {
// Something changed the links!
// Iterate for an id of _goog
for (i=0; i < document.links.length; i++) {
if (document.links[i].id.substring(0,5)=="_goog") {
// If we find an id of _goog then remove the link!
var tr = document.links[i].parentTextEdit.createTextRange();
tr.moveToElementText(document.links[i]);
tr.execCommand("Unlink",false);
tr.execCommand("Unselect",false);
}
}
}
setTimeout("checklinks()",500);
}
if (document.getElementById && document.createElement) {
linkcount=document.links.length;
setTimeout("checklinks()",500);
}
