From 4f3fd086efd7b2b78c07c785ef027e0b9b475966 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Mon, 11 Aug 2014 02:25:20 +0900 Subject: [PATCH] update delicious search command --- _keysnail.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/_keysnail.js b/_keysnail.js index 10442be..5f42b52 100644 --- a/_keysnail.js +++ b/_keysnail.js @@ -102,8 +102,7 @@ plugins.options["search-url-list"] = [ "http://maps.google.co.jp/maps?hl=ja&q=%q&um=1&ie=UTF-8&sa=N&tab=wl"], ["weblio","http://www.weblio.jp/content_find?query=%q"], ["shoutcast","http://www.shoutcast.com/Internet-Radio/%q"], - ["delicious 10sr", - "http://delicious.com/10sr?addtag=%q&setcount=50&opennew=1"], + ["delicious 10sr", "http://delicious.com/10sr/%q"], ["open raw","%r"] ]; @@ -681,7 +680,8 @@ ext.add("query-then-engine", function () { prompt.reader({ message : "Search Word?:", group : "query_word", - completer : completer.matcher.header(share.friendsCache || []), + // completer : completer.matcher.header(share.friendsCache || []), + initialInput : content.document.getSelection() || "", callback : function (q) { if (q) { prompt.selector({ @@ -693,12 +693,14 @@ ext.add("query-then-engine", function () { getBrowser().addTab( plugins.options["search-url-list"][i][1]. replace("%r",q).replace( - "%q",encodeURIComponent(q))); + "%q",encodeURIComponent(q) + ) + ) + ; } }); }; - }, - initialInput : content.document.getSelection() || "" + } }); }, "enter search word and then select engine");