Contents

Introduction

This won't make much sense if you're not using IE with Google's Toolbar 3 beta installed on your system. Obviously you'll also have to enable the AutoLink feature. Other than that the only known requirement is that JS must be enabled. To trigger the script, open the AutoLink menu of the toolbar (the script actually triggers on changes to the totalt number of links on the page)...

The actual script that's used on this page is availible inline. The same script is found below, though there it has less noise from other scripts and functions...

Testcases

JavaScript

// Global variables
   //Used by IE only functions...

   if (window.execScript){
      var intMalarkeyLinks;
      }
 
// Onload events

window.onload = function() {
   //IE only functions...

   if (window.execScript){
      intMalarkeyLinks = document.links.length;
      eRemoveMalarkeyGoo();
      }
   }
 
// eRemoveMalarkeyGoo - Removes "AutoLinks" from the Google Toolbar
// Copyright©2005 by John Magnus Juliussen (http://evirtus.net/)

function eRemoveMalarkeyGoo() {
   if (!(intDocumentLinks==document.links.length)) {
      var strRegexFind = /<a id=_googt.*>([^<]*)<\/a>/gi;
      var strRegexReplace = "$1"
      var objDocBody = document.body.innerHTML;
      var objNewDocBody = objDocBody.replace(strRegexFind,strRegexReplace);
      document.body.innerHTML = objNewDocBody;
      }
   else {
      setTimeout("eRemoveMalarkeyGoo()",1200);
      }
   }

Notes

Please see the Google malarkey blog post for more information on how and why this is done...