For web marketing training, presentations and workshops visit Pacifica Training. If you wish to ask questions about website marketing please head over and register free at the website marketing forum, a knowledge base and community driven discussion group.
Avoid Googles Autolink
Published: March 8, 2005
If you're an online business offering goods or services and are concerned about the new Google Autolink feature then you may wish to invest in some script that can claim back your website.
You shouldn't have to, I know, but here's the code. It's a short regex that will detect the altered output and disable the hyperlink.
<script language="Javascript">
<!--
document.onmousedown = function killAutoLink() {
for (i=0; i<document.links.length; i++) {
var re=new RegExp('google.com:80\/tbproxy+\\b');
if(document.links[i].href.match(re)){
document.links[i].href="";
}
}
}
//-->
</script>