A JavaScript that Kills Google AutoLink Links
By Olivier Duffez, February 23, 2005 at 11:43 AM in: Google - Comments RSS Feed
Chris and Gurtie at Search Guild have published a working script that webmasters can insert into their webpages that kills Google AutoLink links.

What you need to do:
- Insert the script anywhere in your html
- or link it using the <script> tag in the <head> of your pages
- and it will rewrite, the rewritten urls. Killing the Autolink functionality.
Here is the code:
// 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 countlinks() {
var numlinks;
numlinks=0;
for (i=0; i < document.links.length; i++) {
numlinks++;
}
return numlinks;
}
function checklinks() {
if (!(linkcount==countlinks())) {
// Something changed the links!
// Iterate for an id of _goog
found=0;
for (i=0; i < document.links.length; i++) {
if (document.linksi.id.substring(0,5)=="_goog") {
// If we find an id of _goog then remove the link!
var tr = document.linksi.parentTextEdit.createTextRange();
tr.moveToElementText(document.linksi);
tr.execCommand("Unlink",false);
tr.execCommand("Unselect",false);
}
}
}
setTimeout("checklinks()",500);
}
if (document.getElementById && document.createElement) {
linkcount=countlinks();
setTimeout("checklinks()",500);
}Related articles
- New Article on Web Links - 2004-11-08 11:41
- New Google Toolbar (version 3) - 2005-02-17 11:53







Comments
No comment.
Post a comment
Comments for this post are disabled.