Closed almharba closed 1 day 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:
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
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 .
hello, idea to save and autofill all forms including passwords .
please check it
https://github.com/almharba/min-browser-forms-autofill