Magnus2 / Google Relinker

// ==UserScript==
// @name        Google Relinker
// @namespace   own
// @include     https://www.google.de/search?q=*
// @include     https://www.google.com/search?q=*
// @version     1
// @grant       none
// @license     MIT
// ==/UserScript==

// By clicking on a search result you go directly to the target page and not to a redirecting Google page.
// This saves some time.
// Implemented by removing the onmousedown attribute of the links.

var h3s = document.getElementsByTagName("h3");

for(var i = 0; i < h3s.length; ++i)
{
    var h3 = h3s.item(i);

    var classAttr = h3.getAttributeNode("class");
    var match = classAttr != null && classAttr.value == "r";
    if (!match) continue;

    // found a link element
    var aElem = h3.firstChild;
    aElem.removeAttribute("onmousedown");
}