Doing better finding password fields
Doing better finding password fields

Most pages work if I start looking for password fields as soon as the basic HTML is loaded - document.readyState or document.onload.  Other pages (macys.com/signin) don't work unless I wait for all downloads to finish - window.onload.  Yet other sites change CSS to make the password field visible when their Login button is clicked - body.onclick.

With these updates, I no longer have to do all the work of filling fields and setting the placeholder for every DOM mutation.  I can stop once I've found a password field unless countpwid() finds a different one.  This change has the advantage that I no longer need special code to deal with mutation events that I created by setting those values.

alanhkarp/SitePassword,alanhkarp/SitePassword