Skip to content

Instantly share code, notes, and snippets.

@dyaa
Last active April 18, 2018 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dyaa/057973e3ccf5b49803fa3d35965b3a37 to your computer and use it in GitHub Desktop.
Save dyaa/057973e3ccf5b49803fa3d35965b3a37 to your computer and use it in GitHub Desktop.
Auto Search from the Chrome's Address Bar. - Example from caniuse.com
<link rel="search" href="/opensearch.xml" type="application/opensearchdescription+xml" title="Can I use"/>
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>caniuse</ShortName>
<LongName>Can I Use...</LongName>
<Description>Search for feature support across browsers on caniuse.com</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/png">http://caniuse.com/img/favicon-16.png</Image>
<Image width="128" height="128" type="image/png">http://caniuse.com/img/favicon-128.png</Image>
<Url type="text/html" method="get" template="http://caniuse.com/#search={searchTerms}"/>
<Url type="application/opensearchdescription+xml" rel="self" template="http://caniuse.com/search.xml" />
<moz:SearchForm>http://caniuse.com/</moz:SearchForm>
</OpenSearchDescription>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment