diff options
author | anekos | 2011-07-14 05:17:39 +0900 |
---|---|---|
committer | anekos | 2011-07-14 05:17:39 +0900 |
commit | be4bcaf0cffc72ac0e547e37f3e44e28f2b3ea39 (patch) | |
tree | 60c47bc3a3928b51930e8be3b6445774e79827ec | |
parent | 630cbd12644ea988c1f047352222de915e3a514e (diff) | |
download | vimperator-plugins-be4bcaf0cffc72ac0e547e37f3e44e28f2b3ea39.tar.bz2 |
写真などの表示時に、次/前の写真に移動できるようにした
-rw-r--r-- | google-plus-commando.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/google-plus-commando.js b/google-plus-commando.js index 50b6073..0b9f74f 100644 --- a/google-plus-commando.js +++ b/google-plus-commando.js @@ -35,7 +35,7 @@ THE POSSIBILITY OF SUCH DAMAGE. // INFO {{{ let INFO = <> - <plugin name="GooglePlusCommando" version="1.3.0" + <plugin name="GooglePlusCommando" version="1.4.0" href="http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/google-plus-commando.js" summary="The handy commands for Google+" lang="en-US" @@ -159,7 +159,9 @@ let INFO = return bs[n]; } let self = { - get cancel () root.querySelector('.' + Names.closeButton) + get cancel () root.querySelector('.' + Names.closeButton), + get prev () root.querySelector('.vn.GE.AH'), + get next () root.querySelector('.vn.GE.BH'), }; return self; } @@ -167,6 +169,8 @@ let INFO = const Commands = { next: withCount(function () { + if (Elements.viewer) + return click(Elements.viewer.next); let menus = A(Elements.doc.querySelectorAll('[tabindex="0"][role="menu"]')); plugins.feedSomeKeys_3.API.feed.apply( null, @@ -175,6 +179,8 @@ let INFO = ); }), prev: withCount(function () { + if (Elements.viewer) + return click(Elements.viewer.prev); let menus = A(Elements.doc.querySelectorAll('[tabindex="0"][role="menu"]')); plugins.feedSomeKeys_3.API.feed.apply( null, |