diff --git a/README.md b/README.md index 4a64f17..fc9cf9d 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ This is my personal configuration for the wonderful [SurfingKeys](https://github #### Bundled Search Engine Completions -There are currently 41 Search Engine auto-completions. +There are currently 42 Search Engine auto-completions. You can access a Search Engine auto-completion by pressing the search leader key, which is `a` by default, followed by the search engine alias. @@ -41,6 +41,7 @@ For example, to open the Wikipedia completion, you would type `awp` while in nor | `dg` | `duckduckgo` | `duckduckgo.com` | | | `dh` | `dockerhub` | `hub.docker.com` | [:framed_picture:](#dockerhub) | | `do` | `domainr` | `domainr.com` | [:framed_picture:](#domainr) | +| `eb` | `ebay` | `www.ebay.com` | | | `ex` | `exdocs` | `hex.pm` | | | `gd` | `godoc` | `godoc.org` | | | `gh` | `github` | `github.com` | [:framed_picture:](#github) | diff --git a/completions.js b/completions.js index 9100858..440bec3 100644 --- a/completions.js +++ b/completions.js @@ -274,6 +274,18 @@ completions.cl.callback = (response) => { Omnibar.listWords(JSON.parse(response.text)) } +// EBay +completions.eb = { + alias: "eb", + name: "ebay", + search: "https://www.ebay.com/sch/i.html?_nkw=", + compl: "https://autosug.ebay.com/autosug?callback=0&sId=0&kwd=", +} + +completions.eb.callback = (response) => { + Omnibar.listWords(JSON.parse(response.text).res.sug) +} + // Yelp completions.yp = { alias: "yp",