Alternate solution based on a script created by Chris Ridings. Probably the first publicly known method to remove the autolinks from a document. This version is somewhat (increased interval) changed to reveal on of it's weeknesses.
This is a suplementory document for the main malarkey test document, please take a look at that or the Google malarkey blog post for more information.
// Global variables()
//IE ONLY STUFF...
if (window.execScript){
var intDocumentLinks;
}
// Onload events
window.onload = function() {
//IE ONLY STUFF...
if (window.execScript){
intDocumentLinks = document.links.length;
setTimeout("RemoveGoogAuto()",1000);
}
};
// RemoveGoogAuto
// Based on "Autoblink" by Chris Ridings (http://www.searchguild.com/autoblink/)
// Slowed down after initial detection for to emphasize limitation
function RemoveGoogAuto() {
if (!(intDocumentLinks==document.links.length)) {
var NoGoo;
for (i=0; i < document.links.length; i++) {
if (document.links[i].id.substring(0,5)=="_goog") {
NoGoo = document.links[i].parentTextEdit.createTextRange();
NoGoo.moveToElementText(document.links[i]);
NoGoo.execCommand("Unlink");
NoGoo.execCommand("Unselect");
}
}
setTimeout("RemoveGoogAuto()",1000);
}
else {
setTimeout("RemoveGoogAuto()",1000);
}
}