From dd524c4882d3e8cea3bbf826a556827841af9d7f Mon Sep 17 00:00:00 2001
From: anekos
Date: Wed, 17 Dec 2008 17:34:12 +0000
Subject: 対応していない機能を利用しようとしたときに、エラーを出すように。
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@26974 d0d07461-0603-4401-acd4-de1884942a52
---
stella.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
(limited to 'stella.js')
diff --git a/stella.js b/stella.js
index 2047277..64346aa 100644
--- a/stella.js
+++ b/stella.js
@@ -38,7 +38,7 @@ let PLUGIN_INFO =
すてら
Show video informations on the status line.
ステータスラインに動画の再生時間などを表示する。
- 0.10
+ 0.11
anekos
anekos2
new BSD License (Please read the source code comments of this plugin)
@@ -361,6 +361,7 @@ Thanks:
// t = toggle
Player.prototype = {
functions: {
+ comment: '',
currentTime: '',
fileExtension: 'r',
fileURL: '',
@@ -634,7 +635,6 @@ Thanks:
let result = [];
let doc = content.document;
let r = doc.evaluate("//div[@class='video-mini-title']/a", doc, null, 7, null);
- liberator.log(r.snapshotLength)
for (let i = 0, l = r.snapshotLength; i < l; i++) {
let e = r.snapshotItem(i);
result.push(new RelatedID(YouTubePlayer.getIDfromURL(e.href), e.textContent));
@@ -1224,6 +1224,8 @@ Thanks:
p[func] = arg[0];
else if (p.has(func, 'x'))
p[func].apply(p, arg);
+ else
+ raise('Stella: The function is not supported in this page.');
self.update();
},
{argCount: '*', bang: !!funcB},
--
cgit v1.2.3