aboutsummaryrefslogtreecommitdiffstats
path: root/stella.js
diff options
context:
space:
mode:
authoranekos2010-02-18 18:17:08 +0000
committeranekos2010-02-18 18:17:08 +0000
commitd3be0bb21647ab9bb3648505147752375b55f60e (patch)
tree0a233a89176cc5e04216f0cd5a961f5481e783e5 /stella.js
parent2f0fc7f165786b7f8d307d80737e84da3daaf033 (diff)
downloadvimperator-plugins-d3be0bb21647ab9bb3648505147752375b55f60e.tar.bz2
ニコニコ動画のタグを pageinfo に追加
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@36804 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'stella.js')
-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'),