diff options
author | Huawei | 2012-02-28 10:15:39 -0600 |
---|---|---|
committer | Huawei | 2012-02-28 10:15:39 -0600 |
commit | e41eb4be6ff8544d40b689368d11ef808d0ac8bb (patch) | |
tree | 7b7c0f6ad117e546491894094846145fe86a2dd9 /google-results.js | |
parent | 1ac0bcc09a10b8c62b93801c21b5bfc6bef407a3 (diff) | |
download | vimperator-plugins-e41eb4be6ff8544d40b689368d11ef808d0ac8bb.tar.bz2 |
initial commit
Diffstat (limited to 'google-results.js')
-rwxr-xr-x | google-results.js | 29 |
1 files changed, 29 insertions, 0 deletions
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();
+ });
+})();
|