Navigation Search Other Links

TN38 proudly recommends cheap website hosting for small businesses at Pacifica Hosting. Visit UK website hosting for more information.

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

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>

Useful?

Assistance?

Comments

Post a comment

To reproduce, read the Copyright Notice
Published by Edward Clarke
Powered by Movable Type