Skip to content

Conversation

@kunalagra
Copy link

This PR adds support for the OpenSearch standard, allowing users to add Unduck as a search engine in their browser. The opensearch.xml is based on YouTube's one.

Changes:

  • Adds an opensearch.xml file to the /public directory.
  • Links to the XML file from index.html using .

To Test:

  • Open this deployment - https://unduck-ten.vercel.app/
  • Your browser should now offer to add "Unduck" as a search engine (e.g., via the address bar menu in Firefox or in Chrome's search engine settings).
  • Add it and test a search from the address bar.

@vercel
Copy link

vercel bot commented Jun 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unduck ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 8, 2025 3:48pm

<InputEncoding>UTF-8</InputEncoding>
<OutputEncoding>UTF-8</OutputEncoding>
<Query role="example" searchTerms="!g cats"/>
</OpenSearchDescription> No newline at end of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The XML file is missing a trailing newline at the end. Adding a newline after the closing </OpenSearchDescription> tag would follow standard file formatting conventions and prevent potential issues with certain tools and version control systems. This is considered a best practice for text files in Unix/Linux environments.

Spotted by Diamond

Is this helpful? React 👍 or 👎 to let us know.

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

Successfully merging this pull request may close these issues.

1 participant