Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opensearch/Firefox integration [feature,trivial] #177

Open
onlyjob opened this issue May 6, 2021 · 0 comments
Open

Opensearch/Firefox integration [feature,trivial] #177

onlyjob opened this issue May 6, 2021 · 0 comments

Comments

@onlyjob
Copy link
Contributor

onlyjob commented May 6, 2021

There is a neat and useful feature that allows to add a search engine to Firefox search bar with just a few clicks.
Most search engines have already adopted the feature.

For instance, Metager.org have the following on the web page:

<link rel="search" type="application/opensearchdescription+xml" title="MetaGer: privacy protected search &amp; find" href="https://metager.org/plugins/opensearch.xml">

https://metager.org/plugins/opensearch.xml contains the following:

<?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> MetaGer (en)  </ShortName>
        <Description>MetaGer: secure search &amp; find, protecting privacy</Description>
        <Image width="16" height="16" type="image/x-icon">https://metager.org/favicon.ico</Image>
        <Url type="text/html" template="https://metager.org/meta/meta.ger3?eingabe={searchTerms}" method="GET" />
        <InputEncoding>UTF-8</InputEncoding>
</OpenSearchDescription>

The following example is from Mojeek.com:

<link rel="search" type="application/opensearchdescription+xml" title="Mojeek" href="https://www.mojeek.com/opensearch.xml" />

https://www.mojeek.com/opensearch.xml contains the following:

<?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>Mojeek</ShortName>
	<Description>Search the web using Mojeek</Description>
	<InputEncoding>UTF-8</InputEncoding>
	<Image width="16" height="16" type="image/x-icon">https://www.mojeek.com/favicon.png</Image>
	<Url type="text/html" template="https://www.mojeek.com/search?q={searchTerms}"></Url>
		<moz:SearchForm>https://www.mojeek.com</moz:SearchForm>
</OpenSearchDescription>

Reproducing similar declaration would require only a little effort. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant