Skip to content

Instantly share code, notes, and snippets.

@anytizer
Created August 17, 2017 15:49
Show Gist options
  • Save anytizer/275e24b4ad4ecb967c2f1201fb0ffeb6 to your computer and use it in GitHub Desktop.
Save anytizer/275e24b4ad4ecb967c2f1201fb0ffeb6 to your computer and use it in GitHub Desktop.
Adds a custom search in Firefox
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="Example Search">
Look for Example Search!
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>Example Search</ShortName>
<Description>Example Search</Description>
<Url type="text/html" method="get" template="https://example.com/search?q={searchTerms}"/>
<InputEncoding>UTF-8</InputEncoding>
<Image height="16" width="16" type="image/ico">
https://example.com/favicon.ico
</Image>
</OpenSearchDescription>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment