diff options
author | teramako | 2011-07-25 18:48:33 +0900 |
---|---|---|
committer | teramako | 2011-07-25 18:48:33 +0900 |
commit | 35dcc3cb2a58c9a1afc17d1edcd14c24d9bef2b6 (patch) | |
tree | ce7aec1a97e4b6477fea678cd19140751dcd61c3 | |
parent | adb244298c1bd24bf6606c62a5ea20c3069ebddc (diff) | |
download | vimperator-plugins-35dcc3cb2a58c9a1afc17d1edcd14c24d9bef2b6.tar.bz2 |
add extended hint mode 'G' for post an image URL
-rw-r--r-- | google-plus-commando.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/google-plus-commando.js b/google-plus-commando.js index 65b485b..b6e93fe 100644 --- a/google-plus-commando.js +++ b/google-plus-commando.js @@ -676,6 +676,15 @@ let g:gplus_commando_map_menu = "m" true ); + hints.addMode("G", "Google+ Post", + function action(elm) { + var src = elm.src; + commandline.open("", "googleplus -i " + src + " ", modes.EX); + }, + function getXPath() { + return util.makeXPath(["img"]); + }); + /** * Google+のページから必要データを保存する * @return {Boolean} |