aboutsummaryrefslogtreecommitdiffstats
path: root/stella.js
diff options
context:
space:
mode:
authoranekos2010-11-15 17:56:25 +0900
committeranekos2010-11-15 17:56:25 +0900
commit520418d60674f81007f6ac738fd63828332c921a (patch)
treeb474f98959ceb42c74710320cafd155c6d1ff9be /stella.js
parentdebbca424278eaeb66a7d03d27f8cfd9f6a42651 (diff)
downloadvimperator-plugins-520418d60674f81007f6ac738fd63828332c921a.tar.bz2
Follow xxxx firefox4
Diffstat (limited to 'stella.js')
-rw-r--r--stella.js21
1 files changed, 16 insertions, 5 deletions
diff --git a/stella.js b/stella.js
index 34a73f5..18c5c6b 100644
--- a/stella.js
+++ b/stella.js
@@ -39,12 +39,12 @@ let PLUGIN_INFO =
<name lang="ja">すてら</name>
<description>For Niconico/YouTube/Vimeo, Add control commands and information display(on status line).</description>
<description lang="ja">ニコニコ動画/YouTube/Vimeo 用。操作コマンドと情報表示(ステータスライン上に)追加します。</description>
- <version>0.32.2</version>
+ <version>0.32.3</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>
<minVersion>2.0</minVersion>
- <maxVersion>2.4</maxVersion>
+ <maxVersion>3.0</maxVersion>
<updateURL>http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/stella.js</updateURL>
<detail><![CDATA[
== Commands ==
@@ -1665,12 +1665,18 @@ Thanks:
vimeo: new VimeoPlayer(this.stella)
};
+ this.noGUI = true;
+ this.createGUI();
+ this.__onResize = window.addEventListener('resize', U.bindr(this, this.onResize), false);
+ this.progressListener = new WebProgressListener({onLocationChange: U.bindr(this, this.onLocationChange)});
+ },
+
+ createGUI: function () {
+ if (this.noGUI)
+ return;
this.createStatusPanel();
this.onLocationChange();
this.hidden = true;
-
- this.__onResize = window.addEventListener('resize', U.bindr(this, this.onResize), false);
- this.progressListener = new WebProgressListener({onLocationChange: U.bindr(this, this.onLocationChange)});
},
// もちろん、勝手に呼ばれたりはしない。
@@ -1918,6 +1924,8 @@ Thanks:
},
disable: function () {
+ if (this.noGUI)
+ return;
this.hidden = true;
if (this.__updateTimer) {
clearInterval(this.__updateTimer);
@@ -1929,6 +1937,8 @@ Thanks:
},
enable: function () {
+ if (this.noGUI)
+ return;
this.hidden = false;
this.icon.setAttribute('src', this.player.icon);
for (let name in this.toggles) {
@@ -2148,6 +2158,7 @@ Thanks:
// すでにインストール済みの場合は、一度ファイナライズする
// (デバッグ時に前のパネルが残ってしまうため)
if (estella) {
+ liberator.echo(1);
estella.finalize();
install();
} else {