aboutsummaryrefslogtreecommitdiffstats
path: root/pushfind.js
diff options
context:
space:
mode:
authorelzzup2014-07-04 13:40:12 +0900
committerelzzup2014-07-04 13:40:12 +0900
commitdb1b6fc9e6dd3055cbc4686ff3dac4d2a07e1189 (patch)
tree669fa1f6f382af93d4624b0048db7970a9434d14 /pushfind.js
parent34815a6173f07011856a693616add6fb08fea2e3 (diff)
downloadvimperator-plugins-db1b6fc9e6dd3055cbc4686ff3dac4d2a07e1189.tar.bz2
fix echos
Diffstat (limited to 'pushfind.js')
-rwxr-xr-xpushfind.js42
1 files changed, 21 insertions, 21 deletions
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: