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

Added Browser's default search engine #479

Draft
wants to merge 25 commits into
base: main
Choose a base branch
from

Conversation

prem-k-r
Copy link
Collaborator

@prem-k-r prem-k-r commented Jan 16, 2025

📝 Description

Added Browser's current default search engine selecting option as first search engine

📸 Screenshots / 📹 Videos

image
image

🔗 Related Issues

✅ Checklist

  • I have read and followed the Contributing Guidelines.
  • I have tested my changes by installing them as an extension (not just running via localhost) to ensure it builds, installs, and works as expected.
  • I have tested these changes in at least Chrome and Firefox (other browsers if applicable).
  • Attached visual evidence of changes (screenshots or videos) if applicable.

@prem-k-r
Copy link
Collaborator Author

prem-k-r commented Jan 16, 2025

todo: firefox support, translation

issue:
image
Search with div width decreased in English, no more one liner :(
need help with this one

@itz-rj-here itz-rj-here added enhancement New feature or request work in progress The issue is on progress to fix labels Jan 16, 2025
@itz-rj-here
Copy link
Collaborator

itz-rj-here commented Jan 16, 2025

issue: image Search with div width decreased, need help with this one

@Thunder-Blaze Mayhe he can :)

@Thunder-Blaze
Copy link
Contributor

issue: image Search with div width decreased, need help with this one

@Thunder-Blaze Mayhe he can :)

I'll try fixing it 👍🏻

@prem-k-r
Copy link
Collaborator Author

prem-k-r commented Jan 16, 2025

issue: image Search with div width decreased in English, no more one liner, need help with this one

this and in Czech
image
it goes to third line, and so whole screen UI move upward a bit :(

@prem-k-r
Copy link
Collaborator Author

issue: image Search with div width decreased in English, no more one liner, need help with this one

this and in Czech image it goes to third line, and so whole screen UI move upward a bit :(

Actually, after #474 merges, it will resolve lol
no changes needed

@prem-k-r prem-k-r removed the work in progress The issue is on progress to fix label Jan 16, 2025
@Thunder-Blaze
Copy link
Contributor

Can we ... If length is more than expected or should break the words like in todolist

@prem-k-r
Copy link
Collaborator Author

let's leave it for now, after Youtube moving out to search on, this is fine, for now

@Thunder-Blaze
Copy link
Contributor

let's leave it for now, after Youtube moving out to search on, this is fine, for now

ahh yes 👍🏻 , I hadn't read the 2nd msg

@prem-k-r prem-k-r requested a review from itz-rj-here January 16, 2025 20:02
Copy link
Collaborator

@itz-rj-here itz-rj-here left a comment

Choose a reason for hiding this comment

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

Ig we should first let the search with and on pr get merged then i think we should work on this one.

@@ -2615,6 +2624,7 @@ async function getAutocompleteSuggestions(query) {
const clientParam = getClientParam(); // Get the browser client parameter dynamically
var selectedOption = document.querySelector('input[name="search-engine"]:checked').value;
var searchEnginesapi = {
engine0: `https://duckduckgo.com/ac/?q=${encodeURIComponent(query)}&type=list`,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seriously? Why?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Need an api for search suggestions.. used DuckDuckGo as it more privacy focused than Google

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah duckduckgo is better at privacy
and google is better at accuracy due to large datasets it possess XD
I'll let you guys decide

@prem-k-r
Copy link
Collaborator Author

Ig we should first let the search with and on pr get merged then i think we should work on this one.

Yeah, btw this pr is on main branch.. for chrome branch we might have to do toggle thing :|

update wrt pr 474
Scroll the newly selected item into view
@prem-k-r
Copy link
Collaborator Author

Yeah, btw this pr is on main branch.. for chrome branch we might have to do toggle thing

Now we can argue in favour of single purpose policy.

  • Making changes to the browser new tab page only
  • and not the user's search experience.

We are respecting the user's selected settings.
Users can temporarily switch search engine themselves if needed.

@itz-rj-here
Copy link
Collaborator

Thats a great idea actual.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants