Skip to content

Instantly share code, notes, and snippets.

@cyrusdavid
Created August 31, 2013 16:28
Show Gist options
  • Save cyrusdavid/6399264 to your computer and use it in GitHub Desktop.
Save cyrusdavid/6399264 to your computer and use it in GitHub Desktop.
Disable google search result url tracking on google chrome
// ==UserScript==
// @name Delete onmousedown
// @namespace google
// @include http://www.google.*/*
// ==/UserScript==
var runOnce = function(){
var items = document.querySelectorAll('li.g h3.r a');
for(var i = 0, len = items.length; i< len; i++){
items[i].removeAttribute('onmousedown');
}
}
document.body.appendChild(document.createElement("script")).innerHTML = "("+runOnce+")()";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment