From db1b6fc9e6dd3055cbc4686ff3dac4d2a07e1189 Mon Sep 17 00:00:00 2001 From: elzzup Date: Fri, 4 Jul 2014 13:40:12 +0900 Subject: fix echos --- pushfind.js | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'pushfind.js') diff --git a/pushfind.js b/pushfind.js index 06e3e98..ce6a145 100755 --- a/pushfind.js +++ b/pushfind.js @@ -24,25 +24,25 @@ let PLUGIN_INFO = xml` var is_reverse_push = true; var pushfind_configs = [ -{ - name: "wikipedia", - url: 'http:\/\/ja.wikipedia.org\/wiki/*', - get_regex: /http:\/\/ja.wikipedia.org\/wiki\/([^#\/]*)/, - delimiter: "+" -}, -{ - name: "nicovideo", - url: 'http:\/\/www.nicovideo.jp\/search\/*', - get_regex: /http:\/\/www.nicovideo.jp\/search\/(.*)/, - delimiter: "%20" -}, -{ - name: "google", - url: 'https:\/\/www.google.co.jp\/search.*', - get_regex: /google.co.jp\/search.*[&?]q=(.*?)&/, - delimiter: "+" -}, -]; + { + name: "wikipedia", + url: 'http:\/\/ja.wikipedia.org\/wiki/*', + get_regex: /http:\/\/ja.wikipedia.org\/wiki\/([^#\/]*)/, + delimiter: "+" + }, + { + name: "nicovideo", + url: 'http:\/\/www.nicovideo.jp\/search\/*', + get_regex: /http:\/\/www.nicovideo.jp\/search\/(.*)/, + delimiter: "%20" + }, + { + name: "google", + url: 'https:\/\/www.google.co.jp\/search.*', + get_regex: /google.co.jp\/search.*[&?]q=(.*?)&/, + delimiter: "+" + }, + ]; var urls,hiturl; urls = []; @@ -58,7 +58,7 @@ let PLUGIN_INFO = xml` var words, res, hits, hs, pushwords; hs = storage['history-search']; for each (var cf in pushfind_configs) { - liberator.echomsg("pushfind: " + cf.name + "check start"); +// liberator.echomsg("pushfind: " + cf.name + "check start"); pushwords = []; hits = (args.url.match(cf.get_regex)); if (!hits || !hits[1]) { @@ -101,7 +101,7 @@ let PLUGIN_INFO = xml` liberator.echomsg(is_echo_pushfind ? "pushfind: " + pushwords : ""); } ); - liberator.echomsg("pushfind: 3.8 loaded"); +// liberator.echomsg("pushfind: 4.1 loaded"); })(); // vim:sw=2 ts=2 et si fdm=marker: -- cgit v1.2.3