vitalif / Google stop focus

// ==UserScript==
// @name           Google stop focus
// @description    Stop google from focusing the search input on every key press. Compatible with Firefox, Chrome, and Opera.
//
// @run-at         document-start
// @include        http://*.google.*
// @include        https://*.google.*
// ==/UserScript==

document.addEventListener('keydown', function(e) {
    if (document.activeElement.nodeName != 'INPUT') {
        e.cancelBubble = true;
        e.stopImmediatePropagation();
        return false;
    }
    return true;
}, true);