diff options
author | anekos | 2010-05-04 10:24:21 +0000 |
---|---|---|
committer | anekos | 2010-05-04 10:24:21 +0000 |
commit | 08c8d6c04cf9694bd754bded362049583d905f8f (patch) | |
tree | 62fabeeff1bb67f6681630947c4932adfdbf694c | |
parent | 6ff97ef63c91c5cccfec36675cd92a9d89d940f3 (diff) | |
download | vimperator-plugins-08c8d6c04cf9694bd754bded362049583d905f8f.tar.bz2 |
YouTube のタグに対応
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37359 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r-- | stella.js | 6 |
1 files changed, 5 insertions, 1 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.26.6</version> + <version>0.26.7</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> @@ -924,6 +924,10 @@ Thanks: get relations () { let result = []; let doc = content.document; + for each (let item in Array.slice(doc.querySelectorAll('#watch-tags > div > a'))) { + liberator.log(item); + result.push(new RelatedTag(item.textContent)); + } for each (let item in Array.slice(doc.querySelectorAll('.video-list-item'))) { let url = item.querySelector('a').href; if (!YouTubePlayer.isVideoURL(url)) |