-
-
Save cers/81432 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CmdUtils.makeSearchCommand({ | |
name: "Google", | |
url: "http://www.google.com/search?q={QUERY}", | |
parser: {type: "JSON", | |
url: "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q={QUERY}", | |
container: "responseData.results", | |
title: "titleNoFormatting", | |
preview: "content", | |
href: "url"} | |
}); | |
CmdUtils.makeSearchCommand({ | |
name: "Wikipedia", | |
url: "http://en.wikipedia.org/wiki/Special:Search?search={QUERY}&fulltext=Search", | |
parser: {container: "ul.mw-search-results li", | |
title: "a", | |
preview: "div.searchresult"} | |
}); | |
CmdUtils.makeSearchCommand({ | |
name: "IMDb", | |
url: "http://www.imdb.com/find?s=all&q={QUERY}", | |
parser: {container: "table#outerbody table table table tr", | |
title: "td+td>a", | |
thumbnail: "td img:not([src='http://i.media-imdb.com/images/b.gif'])"} | |
}); | |
CmdUtils.makeSearchCommand({ | |
name: "Yahoo", | |
url: "http://search.yahoo.com/search?p={QUERY}", | |
parser: {type: "JSON", | |
url: "http://search.yahooapis.com/WebSearchService/V1/webSearch?appid=wZ.3jHnV34GC4QakIuzfgHTGiU..1SfNPwPAuasmt.L5ytoIPOuZAdP1txE4s6KfRBp9&results=4&output=json&query={QUERY}", | |
container: "ResultSet.Result", | |
title: "Title", | |
preview: "Summary", | |
href: "Url"} | |
}); | |
CmdUtils.makeSearchCommand({ | |
name: "YouTube", | |
url: "http://www.youtube.com/results?search_type=&search_query={QUERY}&aq=f", | |
parser: {container: "div.video-entry", | |
title: "div.video-long-title a", | |
preview: "div.video-description", | |
thumbnail: "img.vimg120"} | |
}); | |
CmdUtils.makeSearchCommand({ | |
name: "Amazon", | |
url: "http://www.amazon.com/s/ref=nb_ss_gw?url=search-alias%3Dstripbooks&field-keywords={QUERY}", | |
parser: {container: "div.result", | |
title: "div.productTitle", | |
preview: "div.productData div.newPrice", | |
thumbnail: "div.productImage"} | |
}); | |
CmdUtils.makeSearchCommand({ | |
name: "Flickr", | |
url: "http://www.flickr.com/search/?q={QUERY}&w=all", | |
parser: {container: "table.DetailResults tr", | |
title: "h3.PicTitle", | |
preview: "p.ListThings", | |
thumbnail: "img.pc_img"} | |
}); | |
CmdUtils.makeSearchCommand({ | |
name: "Trac", | |
url: "https://ubiquity.mozilla.com/trac/search?q={QUERY}", | |
icon: "https://ubiquity.mozilla.com/trac/chrome/common/trac.ico", | |
parser: {title: "dl#results dt", | |
preview: "dl#results dd.searchable"} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment