Skip to content

Instantly share code, notes, and snippets.

@0mg
Forked from miya2000/google_opera_gkbr.js
Created July 19, 2010 02:55
Show Gist options
  • Save 0mg/480965 to your computer and use it in GitHub Desktop.
Save 0mg/480965 to your computer and use it in GitHub Desktop.
Google Suggest Fix for Opera
// ==UserScript==
// @name Google Suggest Fix for Opera
// @include http://www.google.com/*
// @include http://www.google.co.jp/*
// ==/UserScript==
addEventListener("keypress", function(v) {
if (v.target.name === "q" && (v.keyCode === 38 || v.keyCode === 40) &&
!v.shiftKey) v.preventDefault();
}, true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment