aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2010-01-03 09:29:58 +0000
committeranekos2010-01-03 09:29:58 +0000
commit7d9dd4c8a957749dfcf5409f058ba3a7445111f4 (patch)
treef9dd95e3492b9b2eab19f7bf1331ecfb04a08e26
parente3d7c85a60037df68ab0c70fe4e420d94c42b21a (diff)
downloadvimperator-plugins-7d9dd4c8a957749dfcf5409f058ba3a7445111f4.tar.bz2
ニコニコ動画の変更に対応
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@36340 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r--stella.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/stella.js b/stella.js
index fe8c4b5..f9fea72 100644
--- a/stella.js
+++ b/stella.js
@@ -39,7 +39,7 @@ let PLUGIN_INFO =
<name lang="ja">すてら</name>
<description>For Niconico/YouTube, Add control commands and information display(on status line).</description>
<description lang="ja">ニコニコ動画/YouTube 用。操作コマンドと情報表示(ステータスライン上に)追加します。</description>
- <version>0.20.9</version>
+ <version>0.20.10</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>
@@ -1020,7 +1020,8 @@ Thanks:
.filter(function (it) /watch\//.test(it.href))
.map(function(v) v.textContent);
links.forEach(function (link) {
- let r = RegExp('(?:^|[\u3000\\s\\>])([^\u3000\\s\\>]+)\\s*<a href="http:\\/\\/www\\.nicovideo\\.\\w+\\/watch\\/' + link + '" class="video">').exec(comment);
+ let re = RegExp('(?:^|[\u3000\\s\\>])([^\u3000\\s\\>]+)\\s*<a href="http:\\/\\/www\\.nicovideo\\.\\w+\\/watch\\/' + link + '" class="(watch|video)">');
+ let r = re.exec(comment);
if (r)
videos.push(new RelatedID(link, r[1].slice(-20)));
});