aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHuawei2012-02-28 10:15:39 -0600
committeranekos2012-03-17 20:58:17 +0900
commit740b26e34477eb262ea11b162e2a0f53b675619d (patch)
tree7b7c0f6ad117e546491894094846145fe86a2dd9
parent8670bc5e3853747fbb823a752b4529b23e9ab2fe (diff)
downloadvimperator-plugins-740b26e34477eb262ea11b162e2a0f53b675619d.tar.bz2
initial commit
-rwxr-xr-xgoogle-results.js29
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();
+ });
+})();