aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--stella.js19
1 files changed, 15 insertions, 4 deletions
diff --git a/stella.js b/stella.js
index b4a9359..b3e706d 100644
--- a/stella.js
+++ b/stella.js
@@ -39,7 +39,7 @@ 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.24.3</version>
+ <version>0.24.4</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>
@@ -936,9 +936,20 @@ Thanks:
get muted () this.player.ext_isMute(),
set muted (value) (this.player.ext_setMute(value), value),
- get pageinfo () [
- ['comment', U.xpathGet(this.xpath.comment).innerHTML.replace(/<br>/g, '<br/>')]
- ],
+ get pageinfo () {
+ let v = content.wrappedJSObject.Video;
+ return [
+ ['comment', v.description],
+ ['thumbnail', <img src={v.thumbnail} />],
+ [
+ 'tag',
+ [
+ <span><a href={this.makeURL(t, Player.URL_TAG)}>{t}</a></span>
+ for each (t in Array.slice(v.tags))
+ ].join()
+ ]
+ ];
+ },
get player () U.getElementByIdEx('flvplayer'),