aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2008-11-27 04:22:10 +0000
committeranekos2008-11-27 04:22:10 +0000
commitcc153e5645a9be30b17f24a5a2f28200db6c2b26 (patch)
treee2104d44a4590d7aeeee972e8db91078b4e56168
parent2416dd87e154a4176840a5f01e311886ca402be2 (diff)
downloadvimperator-plugins-cc153e5645a9be30b17f24a5a2f28200db6c2b26.tar.bz2
Follow CVS Head
etc git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@25067 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r--bitly.js4
-rw-r--r--fetchyoutube.js1
-rw-r--r--nico_related_videos.js2
-rw-r--r--readcatlater.js6
4 files changed, 6 insertions, 7 deletions
diff --git a/bitly.js b/bitly.js
index 08d004c..3cf9cb1 100644
--- a/bitly.js
+++ b/bitly.js
@@ -25,7 +25,6 @@
return !callback && req.responseText;
}
- // commands.removeUserCommand('bitly');
commands.addUserCommand(
['bitly'],
'Copy bitly url',
@@ -35,7 +34,8 @@
util.copyToClipboard(short);
liberator.echo('`' + short + "' was copied to clipboard.");
});
- }
+ },
+ true
);
// 外から使えるように
diff --git a/fetchyoutube.js b/fetchyoutube.js
index 9b5916e..1167968 100644
--- a/fetchyoutube.js
+++ b/fetchyoutube.js
@@ -40,7 +40,6 @@
if (!doc.location.href.match(/^http:\/\/(?:[^.]+\.)?youtube\.com\/watch/))
return;
let filepath = arg.string;
- let dir = options.getPref('browser.download.dir');
let as = content.document.defaultView.wrappedJSObject.swfArgs;
let title = doc.title.replace(/^YouTube - /, '');
let url = 'http://www.youtube.com/get_video?fmt=22&video_id=' + as.video_id + '&t=' + as.t;
diff --git a/nico_related_videos.js b/nico_related_videos.js
index a196dbe..ce0cc1a 100644
--- a/nico_related_videos.js
+++ b/nico_related_videos.js
@@ -102,7 +102,7 @@
last.url = buffer.URL;
}
context.title = ['Keyword'];
- context.completions = completion.filter(last.completions, context.filter);
+ context.completions = last.completions;
}
},
true
diff --git a/readcatlater.js b/readcatlater.js
index 6c24b6a..41fbd7e 100644
--- a/readcatlater.js
+++ b/readcatlater.js
@@ -196,9 +196,9 @@
function completer (context, arg, bang) {
context.title = ['URL', 'Title'];
- context.items = RCL_Bookmarks(context.filter).
- filter(function (it) it.id).
- map(function (it) [it.URI, bookmarks.getItemTitle(it.id)]);
+ context.completions = RCL_Bookmarks(context.filter).
+ filter(function (it) it.id).
+ map(function (it) [it.URI, bookmarks.getItemTitle(it.id)]);
}
function removeItems (uri) {