Skip to content

Instantly share code, notes, and snippets.

@claui
Created March 8, 2023 16:22
Show Gist options
  • Save claui/2b6b8dd0e7bcac62b708382a10a27856 to your computer and use it in GitHub Desktop.
Save claui/2b6b8dd0e7bcac62b708382a10a27856 to your computer and use it in GitHub Desktop.
OpenSearch descriptor for amazon.de
<?xml version="1.0" encoding="utf-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>amazon.de</ShortName>
<Description/>
<InputEncoding>UTF-8</InputEncoding>
<Image height="24" width="24" type="image/x-icon">https://amazon.de/favicon.ico</Image>
<Url type="text/html" template="https://amazon.de/s">
<Param name="k" value="{searchTerms}"/>
</Url>
<Url rel="suggestions" type="application/x-suggestions+json"
template="http://completion.amazon.co.uk/search/complete">
<Param name="q" value="{searchTerms}"/>
<Param name="search-alias" value="aps"/>
<Param name="mkt" value="4"/><!-- Amazon.de (Germany) -->
</Url>
</OpenSearchDescription>
@claui
Copy link
Author

claui commented Mar 8, 2023

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/2b6b8dd0e7bcac62b708382a10a27856'
    + '/raw/b265b3920efa8b9867d6d8c3977dd8f7e6ce0627/opensearch-amazon-de.xml',
  null
)

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