From d3be0bb21647ab9bb3648505147752375b55f60e Mon Sep 17 00:00:00 2001
From: anekos
Date: Thu, 18 Feb 2010 18:17:08 +0000
Subject: ニコニコ動画のタグを pageinfo に追加
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@36804 d0d07461-0603-4401-acd4-de1884942a52
---
stella.js | 19 +++++++++++++++----
1 file 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 =
すてら
For Niconico/YouTube/Vimeo, Add control commands and information display(on status line).
ニコニコ動画/YouTube/Vimeo 用。操作コマンドと情報表示(ステータスライン上に)追加します。
- 0.24.3
+ 0.24.4
anekos
new BSD License (Please read the source code comments of this plugin)
修正BSDライセンス (ソースコードのコメントを参照してください)
@@ -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(/
/g, '
')]
- ],
+ get pageinfo () {
+ let v = content.wrappedJSObject.Video;
+ return [
+ ['comment', v.description],
+ ['thumbnail',
],
+ [
+ 'tag',
+ [
+ {t}
+ for each (t in Array.slice(v.tags))
+ ].join()
+ ]
+ ];
+ },
get player () U.getElementByIdEx('flvplayer'),
--
cgit v1.2.3