ryoakg
10/8/2016 - 4:02 AM

my-gist-search.xml

<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
  <ShortName>my-gist</ShortName>
  <Description>My gist search</Description>
  <Url type="text/html" method="get" template="http://gist.github.com/search?utf8=%E2%9C%93&amp;q=user%3Aryoakg+{searchTerms}"/>
  <Image width="16" height="16">https://assets-cdn.github.com/favicon.ico</Image>
  <InputEncoding>UTF-8</InputEncoding>
  <SearchForm>http://gist.github.com/</SearchForm>
  <Url type="application/opensearchdescription+xml" rel="self" template="http://mycroft.mozdev.org/updateos.php/id0/github.xml"/>
</OpenSearchDescription>
<!-- INSTALL to your Firefox
     - edit `user' in //OpenSearchDescription/Url[@template]
     - run a web-server in the directory contains this file.
       for example
       $ php -S localhost:8080
     - eval `window.external.AddSearchProvider('http://localhost:8080/my-gist-search.xml')` in the developper tools
 -->