Huh. Google’s Chrome browser uses a different onmousedown handler for tracking GOOG’s search result clicks:
Firefox handler:
window.clk = function(b,c,d,e,f,g){
if(document.images){
var a=encodeURIComponent||escape;(new
Image).src="/url?sa=T\x26source\x3dweb" +
(c? "&oi="+a(c):"") +
(d?"&cad="+a(d):"") +
"&ct="+a(e) + "&cd=" + a(f) +
(b?"&url="+a(b.replace(/#.*/,"")).replace(/\+/g,"%2B"):"") +
"&ei=dVvtSLTSFYnOsAOipLX-Aw"+g;
}
return true;
};
Chrome Handler:
window.asq = function(d,a,e,f,h,i,j) {
if(window.XMLHttpRequest){
if(a.handledFirstTime){
a.handledFirstTime=false;
return false;
}
a.handledFirstTime = true;
var b = encodeURIComponent || escape,
c=new XMLHttpRequest,
g=d.altKey||d.metaKey;
c.open("GET","/url?sa=T\x26source\x3dweb" +
(e?"&oi="+b(e):"") +
(f?"&cad="+b(f):"") +
"&ct=" + b(h) + "&cd=" + b(i) + "&url=" +
b(a.href.replace(/#.*/,"")).replace(/\+/g,"%2B") +
"&ei=OlvtSLOELKGksQObytH8Aw"+j,true);
if(!g){
c.onreadystatechange = function(){
if(c.readyState==4){
clearTimeout(k);
a.dispatchEvent(d);
}
};
var k = setTimeout(function(){
c.abort();
a.dispatchEvent(d);
},2000);
}
c.send(null);
return g;
}
return true
};
Why not use XMLHttpRequest in the Firefox version? Are some Gears
back-door shenanigans afoot? Anyone know? -Ben