Skip to content

Instantly share code, notes, and snippets.

@claui
Created October 2, 2021 21:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save claui/bced92611022070f64548df2cc291361 to your computer and use it in GitHub Desktop.
Save claui/bced92611022070f64548df2cc291361 to your computer and use it in GitHub Desktop.
OpenSearch descriptor for searching zolltarifnummern.de
<?xml version="1.0" encoding="utf-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>zolltarifnummern.de</ShortName>
<Description/>
<InputEncoding>UTF-8</InputEncoding>
<Image height="32" width="32" type="image/x-icon">https://www.tariffnumber.com/favicon.ico</Image>
<Url type="text/html" template="https://www.tariffnumber.com/2019/{searchTerms}">
<Param name="lang" value="de"/>
</Url>
</OpenSearchDescription>
@claui
Copy link
Author

claui commented Oct 2, 2021

To add this search extension to Firefox:

  1. Navigate to about:config.
  2. Set the devtools.chrome.enabled preference to true.
  3. Open Browser Console.
    Caution: that’s not the Developer Tools console. It’s something entirely different.
  4. Paste the following code snippet into the Browser Console:
await Services.search.addOpenSearchEngine(
  'https://gist.githubusercontent.com/claui/bced92611022070f64548df2cc291361'
    + '/raw/5e35714c526258ca352c9ea3b0e1133fc0e09288/opensearch-zolltarifnummern-de.xml',
  null
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment