General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
autofill extension-continuance dev needed
Posted by: disrupted
Date: April 27, 2009 05:50PM

autofill extension that was able to write to prefs normally and reread those prefs in the options dialog.. problem is i can't(don't know how) to call back those prefs from a macro and subsequently fill in forms with javascript.

maybe someone with better js/macro knowledge can make it work.

1- needs to read/load bool prefs written by the extension for field values.
2- js to inject values in fields were applicable.

in ff the toolbar command calls this command in the overlay.js:
doAutofill(event)
"oncommand="return doAutofill(event);">"

problem how to inject the rest of the overlay.js(excluding ff toolbutton commands) and then calling doAutofill()
i know it's not easy but i don't think it's impossible.

autofill files there:
http://kmeleon.swiftfree.net/chromes

macro:
http://kmeleon.swiftfree.net/macros/autofill-testermacro.kmm

test page:
http://www.nhm.ac.uk/take-part/become-a-member/forms/credit-card-print.html

Options: ReplyQuote
Re: autofill extension-continuance dev needed
Posted by: desga2
Date: April 27, 2009 07:47PM

Quote
disrupted
1- needs to read/load bool prefs written by the extension for field values.
2- js to inject values in fields were applicable.

1) I see that some extension use JS code functions to add orread/load pref values.
But I think for K-Meleon isn't needed because you can do it easily with macro functions.

2) All inputs have a name to identificate and with JS you can inject a value property to set his default value. I think this is easy.

I try to help you when have some free time.
But I think that my macro in MacroLibrary isn't bad.
Is more easy create a new macro more complete from my Auto-Fill macro that adapted a FF extension.

Can you post the original web site for this FF extension?

K-Meleon in Spanish



Edited 2 time(s). Last edit at 04/27/2009 08:15PM by desga2.

Options: ReplyQuote
Re: autofill extension-continuance dev needed
Posted by: disrupted
Date: April 27, 2009 08:06PM

thanks desga.

i don't know the original addon mozilla page for this extension, i downloaded it from there:
http://mirror.kr.freebsd.org/mozilla.org/addons/184/
it's version 0.3

i usually search through there for scripts/old or experimental extensions that might not be on mozilla's official page
http://mirror.kr.freebsd.org/mozilla.org/addons/

i think it's better to use macro.. but i couldn't build on your macro, it's too complicated for me and i didn't know how to invoke it to auto-fill fields in the test page
http://www.nhm.ac.uk/take-part/become-a-member/forms/credit-card-print.html

found its project page:
https://blueimp.net/mozilla/#autofill_forms



Edited 1 time(s). Last edit at 04/28/2009 01:17AM by disrupted.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.