Skip to content

Instantly share code, notes, and snippets.

@fantonangeli
Created October 27, 2016 12:39
Show Gist options
  • Save fantonangeli/985240ae6ab6728f727e8c7548aa02ed to your computer and use it in GitHub Desktop.
Save fantonangeli/985240ae6ab6728f727e8c7548aa02ed to your computer and use it in GitHub Desktop.
Mozilla Developer Network ubiquity command
CmdUtils.makeSearchCommand({
name: "mdn",
url: "https://developer.mozilla.org/en-US/search?q={QUERY}",
author: {name:"Fabrizio Antonangeli", email:"fabrizio.antonangeli@gmail.com"},
homepage:"http://developer.mozilla.org/",
icon:"https://developer.cdn.mozilla.net/static/img/opengraph-logo.dc4e08e2f6af.png",
description:"Mozilla Developer Network",
parser: {
container: ".result-list-item",
title: " h4 a",
body: ">p:nth-child(2)",
maxResults: 15
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment