minbrowser / min

A fast, minimal browser that protects your privacy
https://minbrowser.org/
Apache License 2.0
8k stars 709 forks source link

idea to save and autofill all forms #2530

Closed almharba closed 1 day ago

almharba commented 4 days ago

hello, idea to save and autofill all forms including passwords .

please check it

https://github.com/almharba/min-browser-forms-autofill

PalmerAL commented 3 days ago

We already support filling passwords, but I think supporting autofill for other things like addresses is a reasonable idea.

I don't think that just matching on the name field of inputs is going to be sufficient; websites do a lot of weird things with their form markup. What other browsers do is have a UI for managing saved addresses, then they have some complex classification logic for identifying the type of a field. This is what that looks like in Chrome:

Screenshot 2024-11-19 at 1 25 01 PM

So we would probably need to do something similar. Perhaps there are existing libraries we could use to identify fields, like this one: https://github.com/mozilla/fathom

almharba commented 1 day ago

maybe querying simple local database for most common forms names may solve this as i think 90% use the same name in forms . for example "email" will match most of email form entries . if more words added to database like mail and e-mail that would match more . it could be a simple file .

maybe going further and use central database for synching the local database and send unknown form names to AI model on a server to further analyze it and update the central database the synch to local databases .