In fill-credentials.lisp, I have rudimentary filling in of login credentials which can be made semi-automatic from
buffer-loaded-hook if you load it and do something like
(define-configuration web-buffer ((buffer-loaded-hook (reduce #'hooks:add-hook (mapcar #'nyxt::make-handler-buffer (list #'nyxt::fill-credentials-if-login-present)) :initial-value %slot-default%))))
The entry-point is a command
fill-credentials which offers a choice of credentials and tries to fill in a login on the current page. The hook calls this if it sees a login on the page.
I have only implemented the unix password-store password-interface (though experts should be able to fill in the details for the other password-interfaces).
- The detection of logins is super-primitive and a work in progress. Any wisdom or prior art here would be gratefully received.
- The code is very clunky! In particular, I would appreciate a better way of detecting whether a page has an element with a given attribute (would the new
domstuff help here?).
In any case, maybe someone else will find this useful/amusing/a starting point for something better!