Open BoomerScratch opened 4 years ago
note: it doesn't have to be php
@apple502j IKR, I copy and pasted it from the Scratch Wiki.
The search can be done only on browsers using Chromium probably.
I wasn't even aware that this was a thing! Yes, totally add it :D
Example <link>
element we can use:
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="Scratch"/>
/opensearch.xml example (got most from GitHub's opensearch.xml):
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>Scratch</ShortName>
<Description>Search Scratch</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">https://scratch.mit.edu/favicon.ico</Image>
<Url type="text/html" method="get" template="https://github.com/search/projects?q={searchTerms}"/>
<moz:SearchForm>https://scratch.mit.edu/search/projects</moz:SearchForm>
</OpenSearchDescription>
Tell me if you got any feedback! 😄
This is used in the Scratch Wiki:
When the user has visited the Scratch Wiki once, and then types in "en.scratch-wiki.info" in the search bar, you see something like "Press tab to search Scratch Wiki (en)". Why not add it to scratch.mit.edu?