From ed6ddf462b86024f0b1430f54e163ddcc389619a Mon Sep 17 00:00:00 2001 From: anekos Date: Wed, 17 Feb 2010 14:29:22 +0000 Subject: YouTube のタグに対応 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@36789 d0d07461-0603-4401-acd4-de1884942a52 --- stella.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/stella.js b/stella.js index f12a0fb..b4a9359 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.2 + 0.24.3 anekos new BSD License (Please read the source code comments of this plugin) 修正BSDライセンス (ソースコードのコメントを参照してください) @@ -703,7 +703,8 @@ Thanks: icon: 'http://www.youtube.com/favicon.ico', xpath: { - comment: '//span[@class="description"]' + comment: '//span[@class="description"]', + tags: '//div[@id="watch-video-tags"]' }, get currentTime () parseInt(this.player.getCurrentTime()), @@ -759,7 +760,11 @@ Thanks: set muted (value) ((value ? this.player.mute() : this.player.unMute()), value), get pageinfo () [ - ['comment', U.xpathGet(this.xpath.comment).innerHTML] + [ + name, + U.xpathGet(this.xpath[name]).innerHTML.replace(/ /g, ', ') + ] + for (name in this.xpath) ], get player () -- cgit v1.2.3