From f32bb46169cf759794220600e88cca04df6f3404 Mon Sep 17 00:00:00 2001 From: drry Date: Wed, 17 Dec 2008 18:43:47 +0000 Subject: * fixed a regex. * et cetera. git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@26977 d0d07461-0603-4401-acd4-de1884942a52 --- stella.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/stella.js b/stella.js index d6769f5..affa585 100644 --- a/stella.js +++ b/stella.js @@ -42,6 +42,7 @@ let PLUGIN_INFO = 0.11 anekos anekos2 + anekos3 new BSD License (Please read the source code comments of this plugin) 修正BSDライセンス (ソースコードのコメントを参照してください) 2.0pre @@ -570,7 +571,7 @@ Thanks: Player.apply(this, arguments); } - YouTubePlayer.getIDfromURL = function (url) let ([_, r] = url.match(/[?&]v=([-\w]+)/)) r; + YouTubePlayer.getIDfromURL = function (url) let ([_, r] = url.match(/[?;&]v=([-\w]+)/)) r; YouTubePlayer.prototype = { __proto__: Player.prototype, @@ -634,7 +635,7 @@ Thanks: get relatedIDs () { let result = []; - let doc = content.document; + let doc = content.document; let r = doc.evaluate("//div[@class='video-mini-title']/a", doc, null, 7, null); for (let i = 0, l = r.snapshotLength; i < l; i++) { let e = r.snapshotItem(i); @@ -990,7 +991,7 @@ Thanks: self.cachedInfo.flvInfo = parseParameter(res); } - function getPostkey (){ + function getPostkey () { liberator.log('getPostkey') let info = self.cachedInfo; if (info.postkey !== undefined) @@ -1464,7 +1465,7 @@ Thanks: let install = function () { let stella = liberator.plugins.stella = new Stella(); stella.addUserCommands(); - liberator.log('Stella: installed.'); + liberator.log('Stella: installed.') }; // すでにインストール済みの場合は、一度ファイナライズする -- cgit v1.2.3