From e41eb4be6ff8544d40b689368d11ef808d0ac8bb Mon Sep 17 00:00:00 2001 From: Huawei Date: Tue, 28 Feb 2012 10:15:39 -0600 Subject: initial commit --- google-results.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 google-results.js (limited to 'google-results.js') diff --git a/google-results.js b/google-results.js new file mode 100755 index 0000000..9ef3866 --- /dev/null +++ b/google-results.js @@ -0,0 +1,29 @@ +/** +* ==VimperatorPlugin== +* @name google-results.js +* @description helps to select google results +* @author john bower (whiskeytangobravo@gmail.com, http://www.whatsthebeef.org) +* @version 0.1 +* @minversion 2.0pre +* ==/VimperatorPlugin== +* +* LICENSE +* Creative Commons +* +* USAGE +* +* EXAMPLE +* +* HISTORY +* 2012/02/27 ver. 0.1 - initial written. +* +*/ + +(function() { + +commands.addUserCommand(["gr"], + "Google Results", + function (args) { + window.content.document.querySelectorAll("div > ol > li > div > h3 > a")[args].click(); + }); +})(); -- cgit v1.2.3