aboutsummaryrefslogtreecommitdiffstats
path: root/googlesugest.js
diff options
context:
space:
mode:
authortrapezoid2008-03-26 14:27:51 +0000
committertrapezoid2008-03-26 14:27:51 +0000
commit18bc7868c4ff782865eedba648f400fef387ea75 (patch)
treec353419a8671a86d88c99c1f84817841ebc4241d /googlesugest.js
parent294fb80ba3a320f9efbd57e36cda9af332d49abc (diff)
downloadvimperator-plugins-18bc7868c4ff782865eedba648f400fef387ea75.tar.bz2
lang/javascript/vimperator-plugins/trunk/googlesugest.js: rename -> googlesuggest.js
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@8412 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'googlesugest.js')
-rw-r--r--googlesugest.js29
1 files changed, 0 insertions, 29 deletions
diff --git a/googlesugest.js b/googlesugest.js
deleted file mode 100644
index 582f23b..0000000
--- a/googlesugest.js
+++ /dev/null
@@ -1,29 +0,0 @@
-// Vimperator plugin: 'Completion by Google Suggest'
-// Last Change: 21-Mar-2008. Jan 2008
-// License: Creative Commons
-// Maintainer: Trapezoid <trapezoid.g@gmail.com> - http://unsigned.g.hatena.ne.jp/Trapezoid
-//
-// search word completion using google suggest script for vimperator0.6.*
-
-liberator.commands.addUserCommand(['google'],"Search web sites with google suggest",
- function(arg){
- const endpoint = "http://www.google.co.jp/search?q=";
- //liberator.open(endpoint + encodeURIComponent(arg));
- liberator.open(endpoint + encodeURIComponent(arg),liberator.NEW_TAB);
- },
- {
- completer: function (filter) {
- const endPoint = "http://suggestqueries.google.com/complete/search?output=firefox&client=firefox&hl=ja&qu="
- var xhr = new XMLHttpRequest();
- var completionList = [];
-
- xhr.open("GET",endPoint + encodeURIComponent(filter),false);
- xhr.send(null);
- var response = window.eval(xhr.responseText)[1];
-
- for each (var r in response)
- completionList.push([r,"Suggests"]);
- return [0,completionList];
- }
- }
-);