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

Add OpenSearch descriptor #198

Open
leonard84 opened this issue Apr 28, 2020 · 0 comments
Open

Add OpenSearch descriptor #198

leonard84 opened this issue Apr 28, 2020 · 0 comments

Comments

@leonard84
Copy link

It would be nice to have the search of factorio.school available as a search engine in the browser.

All you need to do is to make a static xml file available and add an entry to the <head> section. Also it must be possible to search via a query parameter.

You can compare githubs opensearch descriptor.

<OpenSearchDescription>
<ShortName>GitHub</ShortName>
<Description>Search GitHub</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">https://github.com/favicon.ico</Image>
<Url type="text/html" method="get" template="https://github.com/search?q={searchTerms}&ref=opensearch"/>
<moz:SearchForm>https://github.com/search</moz:SearchForm>
</OpenSearchDescription>
<head>
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub">
</head>

From https://en.wikipedia.org/wiki/OpenSearch

OpenSearch Description Documents must be served with the application/opensearchdescription+xm

Regarding the section that Firefox has deprecated OpenSearch on wikipedia, see the original post

We also want to clarify that this announcement and the dates we specified only cover our plan for AMO [addons.mozilla.org]. As long as Firefox supports OpenSearch, those features in the browser will remain unchanged.

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