Created
November 7, 2009 02:04
-
-
Save miya2000/228475 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Google Suggest Oopera gkbr | |
// @include http://www.google.co.jp/* | |
// ==/UserScript== | |
(function() { | |
function main() { | |
var qn = document.getElementsByName('q'); | |
for (var i = 0; i < qn.length; i++) { | |
qn[i].addEventListener('keypress', function(e) { if (e.keyCode == 38 || e.keyCode == 40) e.preventDefault(); }, false); | |
} | |
} | |
document.addEventListener('DOMContentLoaded', main, false); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment