Google click-tracking disabler

By Donny Viszneki Last update Mar 27, 2008 — Installed 15,126 times.

Not working

in
Subscribe to Not working 1 post, 1 voice

JoeSimmons Scriptwright

The script doesn't work. I fixed it though, and optimized it.
I replaced beginsWith with indexOf, as it's faster and much shorter. I used the pre-defined documents.links instead of the slower getElementsByTagName. I also made it run on-load because it needed to be or else it wouldn't run.

window.addEventListener('load', function(){
Array.forEach(document.links, function(el) {
if((omd=el.getAttribute('onmousedown')) && omd.indexOf('return rwt(this')==0) el.removeAttribute('onmousedown');
});
}, false);

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel