From cc153e5645a9be30b17f24a5a2f28200db6c2b26 Mon Sep 17 00:00:00 2001 From: anekos Date: Thu, 27 Nov 2008 04:22:10 +0000 Subject: Follow CVS Head etc git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@25067 d0d07461-0603-4401-acd4-de1884942a52 --- bitly.js | 4 ++-- fetchyoutube.js | 1 - nico_related_videos.js | 2 +- readcatlater.js | 6 +++--- 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) { -- cgit v1.2.3