Created
January 29, 2010 10:35
-
-
Save erikvold/289629 to your computer and use it in GitHub Desktop.
This userscript disables Google's click tracking for search results.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Google SERP Click Tracking Disabler | |
// @namespace googleSERPClickTrackingDisabler | |
// @include http*://*.google.tld/search?* | |
// @datecreated 2010-01-29 | |
// @lastupdated 2010-01-29 | |
// @version 0.1 | |
// @author Erik Vergobbi Vold | |
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html | |
// @description This userscript disables Google's click tracking for search results. | |
// ==/UserScript== | |
(function(doc){ | |
var results = doc.evaluate("//h3[contains(@class,'r')]/a[contains(@class,'l')]",doc,null,6,null), | |
r; | |
for(var i=results.snapshotLength-1;i>-1;i--){ | |
r = results.snapshotItem(i); | |
r.removeAttribute('onmousedown'); | |
r.parentNode.replaceChild(r.cloneNode(true),r); | |
} | |
})(document); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment