Support Chrome's omnibox search

edited May 26, 2016 9:15AM in PInvoke.Net
If you put some markup on the site:
<link rel="search" type="application/opensearchdescription+xml" title="PInvoke.net" href="/opensearch.xml" />

The make opensearch.xml:
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"; xmlns:moz="http://www.mozilla.org/2006/browser/search/">
  <ShortName>pinvoke.net: the interop wiki!</ShortName>
  <Description>
    PInvoke.net is primarily a wiki, allowing developers to find, edit and add 
    PInvoke signatures, user-defined types, and any other information related to calling 
    Win32 and other unmanaged APIs from managed code (written in languages such as C# or VB.NET).
  </Description>
  <InputEncoding>UTF-8</InputEncoding>
  <Url type="text/html" method="get" template="http://pinvoke.net/search.aspx?search={searchTerms}&namespace=[All]"/>
</OpenSearchDescription>

Then when people type "pinvoke.net" into Chrome (and other browsers) there's an option to search directly from the chrome omnibox. This is a great usability feature! And it's very easy to add to the site.

Some more information here.

http://stackoverflow.com/questions/7630 ... -your-site
Sign In or Register to comment.