[source:tweak] reduce duplicate code

This commit is contained in:
Maddison Hellstrom 2019-06-21 13:21:02 -07:00
parent fdf8342d7a
commit df1378a953
1 changed files with 2 additions and 4 deletions

View File

@ -710,20 +710,18 @@ completions.gi = {
name: "google-images",
search: "https://www.google.com/search?tbm=isch&q=",
compl: "https://www.google.com/complete/search?client=chrome-omni&gs_ri=chrome-ext&oit=1&cp=1&pgcl=7&ds=i&q=",
callback: completions.go.callback,
}
completions.gi.callback = response => JSON.parse(response.text)[1]
// Google - I'm Feeling Lucky
completions.G = {
alias: "G",
name: "google-lucky",
search: "https://www.google.com/search?btnI=1&q=",
compl: "https://www.google.com/complete/search?client=chrome-omni&gs_ri=chrome-ext&oit=1&cp=1&pgcl=7&q=",
callback: completions.go.callback,
}
completions.gl.callback = response => JSON.parse(response.text)[1]
// ****** Elixir ****** //
// Hex.pm