Sun, 17 Jul 2011 16:12:46 -0500, /JD/:
Stanimir Stamenkov wrote:Here's already revised code to handle forms found in frames, additionally: let lm = Components.classes["@mozilla.org/login-manager;1"] .getService(Components.interfaces.nsILoginManager); function fillForms(doc) { let forms = doc.forms; for (let i = 0; i < forms.length; i++) { lm.fillForm(forms[i]); } } fillForms(content.document); let frames = content.frames; for (let i = 0; i < frames.length; i++) { fillForms(frames[i].document); }Do I used both the above or just the last one?
Just the last one - the one I'm leaving quoted above.
And I need the custom buttons extension?
That's at least what I've used to make the script conveniently executed without the need to package it as yet another extension. David E. Ross points in another reply he has successfully used it with the ability of the PrefBar extension (I don't use that one) to create such custom buttons, also.
-- Stanimir _______________________________________________ support-seamonkey mailing list [email protected] https://lists.mozilla.org/listinfo/support-seamonkey

