diff options
author | anekos | 2010-03-14 11:34:54 +0000 |
---|---|---|
committer | anekos | 2010-03-14 11:34:54 +0000 |
commit | 900663b4000f35185c6b4fbc91f9cc8301bd7139 (patch) | |
tree | bb1d6251d2dab3a0cfed8f1c3eee8f2566e91a8e /zoom-em-all.js | |
parent | 9e47991234ff7d06f68268ed2586c1172c157799 (diff) | |
download | vimperator-plugins-900663b4000f35185c6b4fbc91f9cc8301bd7139.tar.bz2 |
-+ 指定可能にした
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37021 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'zoom-em-all.js')
-rwxr-xr-x | zoom-em-all.js | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/zoom-em-all.js b/zoom-em-all.js index 4707b3a..6877114 100755 --- a/zoom-em-all.js +++ b/zoom-em-all.js @@ -39,7 +39,7 @@ let PLUGIN_INFO = <name lang="ja">Zoom Em All</name> <description>Zoom them all.</description> <description lang="ja">ブラウザ全体をズーム</description> - <version>1.0.0</version> + <version>1.1.0</version> <author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author> <license>new BSD License (Please read the source code comments of this plugin)</license> <license lang="ja">修正BSDライセンス (ソースコードのコメントを参照してください)</license> @@ -57,7 +57,7 @@ let PLUGIN_INFO = // INFO {{{ let INFO = <> - <plugin name="ZoomEmAll" version="1.0.0" + <plugin name="ZoomEmAll" version="1.1.0" href="http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/zoom-em-all.js" summary="Zoom or pan for whole firefox." lang="en-US" @@ -76,7 +76,7 @@ let INFO = </description> </item> </plugin> - <plugin name="ZoomEmAll" version="1.0.0" + <plugin name="ZoomEmAll" version="1.1.0" href="http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/zoom-em-all.js" summary="ブラウザ全体をズーム" lang="ja" @@ -115,7 +115,12 @@ let INFO = ['zooma[ll]', 'zoomemall'], 'Zoom Em All', function (args) { - docViewer.fullZoom = parseInt(args.literalArg || '100', 10) / 100; + let [, s, d] = args.literalArg.trim().match(/^([-+])(\d+)/) || []; + if (d) { + docViewer.fullZoom += parseInt(args.literalArg || '100', 10) / 100; + } else { + docViewer.fullZoom = parseInt(args.literalArg || '100', 10) / 100; + } }, { literal: 0 |