diff options
author | anekos | 2010-02-18 18:17:08 +0000 |
---|---|---|
committer | anekos | 2010-02-18 18:17:08 +0000 |
commit | d3be0bb21647ab9bb3648505147752375b55f60e (patch) | |
tree | 0a233a89176cc5e04216f0cd5a961f5481e783e5 /stella.js | |
parent | 2f0fc7f165786b7f8d307d80737e84da3daaf033 (diff) | |
download | vimperator-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.js | 19 |
1 files changed, 15 insertions, 4 deletions
@@ -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'), |