[GH-ISSUE #144] [QUESTION] Setting options via query string #104

Closed
opened 2026-02-25 20:34:54 +03:00 by kerem · 5 comments
Owner

Originally created by @Rudi9719 on GitHub (Nov 3, 2020).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/144

Is it possible to set config options (like Language, dark mode or region) via the search query?

/search?lang=English&dark=True&q=Test&ie=UTF-8

Originally created by @Rudi9719 on GitHub (Nov 3, 2020). Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/144 Is it possible to set config options (like Language, dark mode or region) via the search query? /search?lang=English&dark=True&q=Test&ie=UTF-8
kerem 2026-02-25 20:34:54 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@benbusby commented on GitHub (Nov 3, 2020):

Currently, no, but I'm open to the idea. I don't think I'd want to support the full suite of configuration settings as search params, but things like dark mode/language/region should be fine. What's the use case for something like this? I can see it being useful for public instances of whoogle, but I'm curious what you had in mind.

<!-- gh-comment-id:721418008 --> @benbusby commented on GitHub (Nov 3, 2020): Currently, no, but I'm open to the idea. I don't think I'd want to support the full suite of configuration settings as search params, but things like dark mode/language/region should be fine. What's the use case for something like this? I can see it being useful for public instances of whoogle, but I'm curious what you had in mind.
Author
Owner

@Rudi9719 commented on GitHub (Nov 4, 2020):

https://whoogle.sdf.org - I'm constantly changing the language/region back to English, as SDF is international and has multiple people using your amazing project! I've overriden the default search bar in Chrome, and KDE to use SDF's public whoogle instance

<!-- gh-comment-id:721803282 --> @Rudi9719 commented on GitHub (Nov 4, 2020): https://whoogle.sdf.org - I'm constantly changing the language/region back to English, as SDF is international and has multiple people using your amazing project! I've overriden the default search bar in Chrome, and KDE to use SDF's public whoogle instance
Author
Owner

@benbusby commented on GitHub (Nov 11, 2020):

Added in 72cbc342af. Once this is merged into a release build, I can reach out to SDF to see if they'd mind updating to the version with this fix (or they can cherry pick that commit into their current instance, if they read this).

In your use case, I think setting the query as /search?q=%s&dark=1&lang_interface=lang_en&lang_interface=lang_en should work. I'll do a more in depth wiki write up once this is merged into master. Thanks for the recommendation!

<!-- gh-comment-id:725214985 --> @benbusby commented on GitHub (Nov 11, 2020): Added in 72cbc342af313dba9f332704dbabf58dc7bcbcdf. Once this is merged into a release build, I can reach out to SDF to see if they'd mind updating to the version with this fix (or they can cherry pick that commit into their current instance, if they read this). In your use case, I think setting the query as `/search?q=%s&dark=1&lang_interface=lang_en&lang_interface=lang_en` should work. I'll do a more in depth wiki write up once this is merged into master. Thanks for the recommendation!
Author
Owner

@Rudi9719 commented on GitHub (Nov 17, 2020):

Sorry to necro, but I wanted to reach out and say THANK YOU SO MUCH!!! I also reached out to SDF's Membership/Admins.

<!-- gh-comment-id:729180804 --> @Rudi9719 commented on GitHub (Nov 17, 2020): Sorry to necro, but I wanted to reach out and say THANK YOU SO MUCH!!! I also reached out to SDF's Membership/Admins.
Author
Owner

@benbusby commented on GitHub (Nov 17, 2020):

No problem! I'm happy to help.

<!-- gh-comment-id:729258906 --> @benbusby commented on GitHub (Nov 17, 2020): No problem! I'm happy to help.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whoogle-search#104
No description provided.