Skip to content

Instantly share code, notes, and snippets.

@technicool
Created January 27, 2012 01:29
Show Gist options
  • Select an option

  • Save technicool/1686347 to your computer and use it in GitHub Desktop.

Select an option

Save technicool/1686347 to your computer and use it in GitHub Desktop.
Clean Google links
// ==UserScript==
// @name Clean Google links
// @namespace http://manschutz.com/stuff/greasemonkey
// @description clean links in Google search result page (remove "onmousedown" attribute).
// @include http://www.google.com/search?*
// @include https://www.google.com/search?*
// ==/UserScript==
(function() {
var links = document.getElementsByTagName('a');
var i = links.length, link;
while (i--) {
link = links[i];
if (link.className != 'l') continue;
link.removeAttribute('onmousedown');
}
})();
@technicool
Copy link
Copy Markdown
Author

This works in Chrome 16 with TamperMonkey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment