Seanst3r wrote:Hi. I have 3 features I would like to submit for your consideration.
1. When auto-select best profile is on and I press the pencil button and it fills out a form I would like that profile to become the currently selected profile. Would really help the next time I access the profile switcher, or use the "add a rule for this field" context menu.
2. Again, using auto select best profile, if I press the pencil button again (repeatedly), I would like it to choose the next best matching profile, if any. I would like it to loop back to the first best profile rather than sit at the last matching profile. I already arrange my matching profiles in order of preference.
[...]
Hey guys I filled my own 2 year old request today. My profiles got out of whack and while I was cleaning up the mess I just happened to notice autofillForms.js sitting there. I thought there would be frameworks to install and compiling and all kinds of mess. Had I known it was as simple as editing some javascript I wouldn't have even bothered asking and just done it straight away.
*Updated 03 Nov 2011 for version: "0.9.8.2"*
http://www.seanster.com/autofill/autofillForms.zip
This zip file has my hacked version of "autofillForms.js"
it came from this directory:
\extensions\autofillForms@blueimp.net\chrome\content\autofillForms.js
(or else is in autofillForms@blueimp.net.xpi - a zip file)
It's just the one javascript file I changed. You still need the whole package installed, then just replace that file. I didn't save the original or I would have at least provided a diff. Feel free to diff it against the current version yourself, there's very few changes and all should be obvious. Nothing evil.
The purpose of this hack is for sites where you might have 2 or 3 different logins. Rather than hunting thru the dropdown list of 200 sites looking for my particular login, I can just press the fill forms button repeatedly until it plunks in the username and password I desire.
It searches your profiles in linear order, starting at the NEXT profile down from the current profile. If it gets to the end of the profile list it wraps back to the beginning of the list and searches for a match up to the current profile and stops there if it hasn't stopped sooner.
It's definitely not sorting profiles from the most complex match to the simplest matches and giving them to you in order. If you want to simulate that you can manually put your profiles in the desired order.
If you're bad like me and have a standard username and password for junk sites, you can use a catch-all profile with a field rule like (?:^username$) or go all out and and just repeat that username and password pair for the top 50 commonly used field rules. That could save me 50 custom site profiles right there.
Feel free to contact me if you have any issues with it.