From 7d9dd4c8a957749dfcf5409f058ba3a7445111f4 Mon Sep 17 00:00:00 2001
From: anekos
Date: Sun, 3 Jan 2010 09:29:58 +0000
Subject: ニコニコ動画の変更に対応
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@36340 d0d07461-0603-4401-acd4-de1884942a52
---
stella.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
(limited to 'stella.js')
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 =
すてら
For Niconico/YouTube, Add control commands and information display(on status line).
ニコニコ動画/YouTube 用。操作コマンドと情報表示(ステータスライン上に)追加します。
- 0.20.9
+ 0.20.10
anekos
new BSD License (Please read the source code comments of this plugin)
修正BSDライセンス (ソースコードのコメントを参照してください)
@@ -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*').exec(comment);
+ let re = RegExp('(?:^|[\u3000\\s\\>])([^\u3000\\s\\>]+)\\s*');
+ let r = re.exec(comment);
if (r)
videos.push(new RelatedID(link, r[1].slice(-20)));
});
--
cgit v1.2.3