Skip to content

Conversation

@prov3ntus
Copy link

@prov3ntus prov3ntus commented May 3, 2025

If the default bang is being used (Google), append any additional queries ? found other than the original q=%s query.

This allows for additional queries to be passed to Google whenever the default bang is used, and extends functionality for us power users out there.

This PR was originally made so that unduck wouldn't ignore the udm=14 query I was passing it in my search engine settings, but it can be used for any similar params you can think of that Google supports.

These additional queries will still be ignored if using any bang other than Google (for obvious reasons).

This is what the URL looks like in my Search Engine settings for my browser:

https://unduck.link?q=%s&udm=14 (also see pic below)

image

Took the idea from this ThioJoe video.

I wanted to use udm=14, but you can't use both this extra param and unduck simultaneously, without my suggested changes.

EDIT: This is different from (and better than) the pull request #112 because it's not forcing any params; the end user still has full control over what params are passed, and what values they have.

Would love to see this be merged, I think this would be cool for a lot of people. 💪💪

If the default bang is being used (Google), append any additional queries found other than the original "?q=%s" query.

This allows for other queries to be passed to Google whenever default search is used, and extends functionality for us power users out there. This PR was originally made so that unduck wouldn't ignore the "udm=14" query I was passing it in my search engine settings: 
`https://unduck.link?q=%s&udm=14`
Took the idea from [ThioJoe's video](https://www.youtube.com/watch?v=qGlNb2ZPZdc).
@vercel
Copy link

vercel bot commented May 3, 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 May 3, 2025 1:37pm

@prov3ntus prov3ntus changed the title Support appending extra queries for Google Support for appending extra queries to Google searches May 3, 2025
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