diff options
author | anekos | 2010-07-15 02:40:33 +0000 |
---|---|---|
committer | anekos | 2010-07-15 02:40:33 +0000 |
commit | 08710e240e34d88aeeda479738abe40d6e8d62aa (patch) | |
tree | 9dd1dc840bc95f64793876b7f7898f1f3ff086bd | |
parent | 7e17dd7b2af828ea1e5192d5c1c964e54ec61ce1 (diff) | |
download | vimperator-plugins-08710e240e34d88aeeda479738abe40d6e8d62aa.tar.bz2 |
タブを開く間隔を指定可能に
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37934 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r-- | pino.js | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -41,7 +41,7 @@ var PLUGIN_INFO = <require type="plugin">_libly.js</require> <author mail="snaka.gml@gmail.com" homepage="http://vimperator.g.hatena.ne.jp/snaka72/">snaka</author> <license>MIT style license</license> - <version>1.3.3</version> + <version>1.4.0</version> <detail><![CDATA[ == Subject == Open livedoor Reader pinned items. @@ -66,6 +66,9 @@ var PLUGIN_INFO = If you want to use fastladder, set "http://fastladder.com" into this variable. default: "http://reader.livedoor.com" + g:pinoOpenInterval: + Interval of opening tabs. (msec) + == API == plugins.pino.items(): Return pinned items list array. @@ -118,6 +121,9 @@ var PLUGIN_INFO = fastladder を使う場合は、この変数を "http://fastladder.com" とする。 default: "http://reader.livedoor.com" + g:pinoOpenInterval: + タブを開く間隔(ミリ秒) + == API == plugins.pino.items(): ピンの一覧を配列で取得する。 @@ -171,7 +177,7 @@ let self = liberator.plugins.pino = (function() { for(let i = 0; i < max; i++) { if (!(pin = pins.shift())) break; - setTimeout(function(link) liberator.open(link, openBehavior()), 200 * i, pin.link); + setTimeout(function(link) liberator.open(link, openBehavior()), openInterval() * i, pin.link); } } else { @@ -212,6 +218,9 @@ let self = liberator.plugins.pino = (function() { function baseURL() gv.pinoBaseURL || "http://reader.livedoor.com"; + function openInterval() + gv.pinoOpenInterval || 200; + // }}} // CLASS ///////////////////////////////////////////////////////// {{{ |