Autofill 0.2 Workaround for Firefox 1.5

Talk about add-ons and extension development.
Post Reply
User avatar
L.A.R. Grizzly
Posts: 5396
Joined: March 15th, 2005, 5:32 pm
Location: Upstate Ohio, USA
Contact:

Autofill 0.2 Workaround for Firefox 1.5

Post by L.A.R. Grizzly »

After "bumping up your maxVersion" in your install.rdf for Autofill, you may find that after installation, you cannot set up profiles rendering the install useless. A workaround requires editing your prefs.js file in your profile folder.

Make a copy of your prefs.js in case you mess up. Copy this entire list EXACTLY. Open prefs.js in Notepad. Highlight every line that includes "autofill" (use this text as a guide). Now Paste the copied text. This will replace all of your Autofill settings. I tested this in my installation and it works perfectly. All you have to do is fill in your info. Here are links to download and test your Autofill:

Download Autofill 0.2

Test Autofill

If you have Microsoft Word, you can paste the text and "Replace" all "Firefox" entries with the name of the profile you desire before editing your prefs.js file. You can obviously copy and paste your settings from the prefs.js file of a backup you may have of a previous installation.

Code: Select all

user_pref("autofill.Firefox.card_exp_day", ""); 
user_pref("autofill.Firefox.card_exp_month", "");
user_pref("autofill.Firefox.card_exp_year", "");
user_pref("autofill.Firefox.card_name", "");
user_pref("autofill.Firefox.card_number", "");
user_pref("autofill.Firefox.card_type", "");
user_pref("autofill.Firefox.card_verification", "");
user_pref("autofill.Firefox.email_address", "");
user_pref("autofill.Firefox.first_name", "");
user_pref("autofill.Firefox.last_name", "");
user_pref("autofill.Firefox.middle_name", "");
user_pref("autofill.Firefox.phone_number", "");
user_pref("autofill.Firefox.primary_city", "");
user_pref("autofill.Firefox.primary_country", "United States");
user_pref("autofill.Firefox.primary_country_code", "US");
user_pref("autofill.Firefox.primary_line1", "");
user_pref("autofill.Firefox.primary_line2", "");
user_pref("autofill.Firefox.primary_state", "");
user_pref("autofill.Firefox.primary_zip", "");
user_pref("autofill.Firefox.secondary_city", "");
user_pref("autofill.Firefox.secondary_country", "");
user_pref("autofill.Firefox.secondary_country_code", "");
user_pref("autofill.Firefox.secondary_line1", "");
user_pref("autofill.Firefox.secondary_line2", "");
user_pref("autofill.Firefox.secondary_state", "");
user_pref("autofill.Firefox.secondary_zip", "");
user_pref("autofill.Firefox.suffix", "");
user_pref("autofill.Firefox.title", "");
user_pref("autofill.Firefox.use_primary", true);
user_pref("autofill.autohighlight", false);
user_pref("autofill.debug", false);
user_pref("autofill.form_label_name.card_exp_day", "expiration day,expiration date");
user_pref("autofill.form_label_name.card_exp_month", "expiriation month");
user_pref("autofill.form_label_name.card_exp_year", "expiration year");
user_pref("autofill.form_label_name.card_name", "card name");
user_pref("autofill.form_label_name.card_number", "card number");
user_pref("autofill.form_label_name.card_type", "card type");
user_pref("autofill.form_label_name.card_verification", "verification");
user_pref("autofill.form_label_name.email_address", "email,e-mail");
user_pref("autofill.form_label_name.first_name", "first");
user_pref("autofill.form_label_name.full_name", "full,name");
user_pref("autofill.form_label_name.last_name", "last,surname");
user_pref("autofill.form_label_name.middle_name", "mi");
user_pref("autofill.form_label_name.phone_number", "phone");
user_pref("autofill.form_label_name.primary_city", "city");
user_pref("autofill.form_label_name.primary_country", "country");
user_pref("autofill.form_label_name.primary_country_code", "country");
user_pref("autofill.form_label_name.primary_line1", "address, street");
user_pref("autofill.form_label_name.primary_line2", "address2, street2");
user_pref("autofill.form_label_name.primary_state", "state");
user_pref("autofill.form_label_name.primary_zip", "zip");
user_pref("autofill.form_label_name.secondary_city", "shipto city");
user_pref("autofill.form_label_name.secondary_country", "shipto country");
user_pref("autofill.form_label_name.secondary_country_code", "shipto code");
user_pref("autofill.form_label_name.secondary_line1", "shipto line1");
user_pref("autofill.form_label_name.secondary_line2", "shipto line2");
user_pref("autofill.form_label_name.secondary_state", "shipto state");
user_pref("autofill.form_label_name.secondary_zip", "shipto zip");
user_pref("autofill.form_label_name.suffix", "suffix");
user_pref("autofill.form_label_name.title", "title,prefix");
user_pref("autofill.form_name.card_exp_day", "Ecom_Payment_Card_ExpDate_Day,ccday,expday,expdate,cc_expdate");
user_pref("autofill.form_name.card_exp_month", "Ecom_Payment_Card_ExpDate_Month,ccmonth,expmonth,cc_expmonth");
user_pref("autofill.form_name.card_exp_year", "Ecom_Payment_Card_ExpDate_Year,ccyear,expyear,cc_expyear");
user_pref("autofill.form_name.card_name", "Ecom_Payment_Card_Name,ccname,cc_name");
user_pref("autofill.form_name.card_number", "Ecom_Payment_Card_Number,ccnum,ccnumber,cc_num,cc_number");
user_pref("autofill.form_name.card_type", "Ecom_Payment_Card_Type,cctype,cc_type");
user_pref("autofill.form_name.card_verification", "Ecom_Payment_Card_Verification,ccver,cc_ver");
user_pref("autofill.form_name.email_address", "Ecom_ShipTo_Online_Email,Ecom_BillTo_Online_Email,Ecom_ReceiptTo_Online_Email,email,retype_email,email1,email2");
user_pref("autofill.form_name.first_name", "Ecom_ShipTo_Postal_Name_First,Ecom_BillTo_Postal_Name_First,Ecom_ReceiptTo_Postal_Name_First,first_name,firstname,first,fname");
user_pref("autofill.form_name.full_name", "full_name,name");
user_pref("autofill.form_name.last_name", "Ecom_ShipTo_Postal_Name_Last,Ecom_BillTo_Postal_Name_Last,Ecom_ReceiptTo_Postal_Name_Last,last_name,lastname,last,lname");
user_pref("autofill.form_name.middle_name", "Ecom_ShipTo_Postal_Name_Middle,Ecom_BillTo_Postal_Name_Middle,Ecom_ReceiptTo_Postal_Name_Middle,middle_name,middlename,middle,mname");
user_pref("autofill.form_name.phone_number", "Ecom_ShipTo_Telecom_Phone_Number,Ecom_BillTo_Telecom_Phone_Number,Ecom_ReceiptTo_Telecom_Phone_Number,phone");
user_pref("autofill.form_name.primary_city", "Ecom_BillTo_Postal_City,Ecom_ReceiptTo_Postal_City,city");
user_pref("autofill.form_name.primary_country", "country");
user_pref("autofill.form_name.primary_country_code", "Ecom_BillTo_Postal_CountryCode,Ecom_ReceiptTo_Postal_CountryCode,country");
user_pref("autofill.form_name.primary_line1", "Ecom_BillTo_Postal_Street_Line1,Ecom_ReceiptTo_Postal_Street_Line1,addr1,street1,address1,add1,address,add,street");
user_pref("autofill.form_name.primary_line2", "Ecom_BillTo_Postal_Street_Line2,Ecom_ReceiptTo_Postal_Street_Line2,addr2,street2,address2,add2");
user_pref("autofill.form_name.primary_state", "Ecom_BillTo_Postal_StateProv,Ecom_ReceiptTo_Postal_StateProv,state,statecode");
user_pref("autofill.form_name.primary_zip", "Ecom_BillTo_Postal_PostalCode,Ecom_ReceiptTo_Postal_PostalCode,zip,zipcode");
user_pref("autofill.form_name.secondary_city", "Ecom_ShipTo_Postal_City");
user_pref("autofill.form_name.secondary_country", "country");
user_pref("autofill.form_name.secondary_country_code", "Ecom_ShipTo_Postal_CountryCode");
user_pref("autofill.form_name.secondary_line1", "Ecom_ShipTo_Postal_Street_Line1");
user_pref("autofill.form_name.secondary_line2", "Ecom_ShipTo_Postal_Street_Line2");
user_pref("autofill.form_name.secondary_state", "Ecom_ShipTo_Postal_StateProv");
user_pref("autofill.form_name.secondary_zip", "Ecom_ShipTo_Postal_PostalCode");
user_pref("autofill.form_name.suffix", "Ecom_ShipTo_Postal_Name_Suffix,Ecom_BillTo_Postal_Name_Suffix,Ecom_ReceiptTo_Postal_Name_Suffix");
user_pref("autofill.form_name.title", "Ecom_ShipTo_Postal_Name_Prefix,Ecom_BillTo_Postal_Name_Prefix,Ecom_ReceiptTo_Postal_Name_Prefix");
user_pref("autofill.profile_list", "Firefox");
user_pref("autofill.selected_profile_id", "Firefox");
user_pref("autofill.version", "0.2");
Last edited by L.A.R. Grizzly on December 5th, 2005, 5:22 pm, edited 9 times in total.
Win7 Pro SP1 64 Bit
Comodo Internet Security
Pale Moon 33.0.2, Epyrus Mail 2.1.2, Firefox 115.8.0esr, Thunderbird 115.8.1, and SeaMonkey 2.53.18
User avatar
mcm_ham
Posts: 1747
Joined: June 16th, 2004, 6:09 am
Location: Christchurch, New Zealand

Post by mcm_ham »

Nice idea. If you want to offer a fixed version of the installer then you can paste all these prefs
in a file labelled something like "autofill.js". Then place this file inside the extension like this:

autofill\install.rdf
autofill\defaults\preferences\autofill.js
garethjmsaunders
Posts: 3
Joined: November 30th, 2005, 7:12 am
Location: Edinburgh UK

Didn't work for me

Post by garethjmsaunders »

That method didn't work for me. I get an error:

"Firefox could not install this item because of a failure in Chrome Registration. Please contact the author about this problem."

Any ideas?
Gareth J M Saunders
Edinburgh, UK

http://blog.garethjmsaunders.co.uk/
Jazkal
Posts: 2
Joined: September 14th, 2004, 11:02 am

Post by Jazkal »

Anyone have a modified autofill.xpi that works in FF1.5?
User avatar
L.A.R. Grizzly
Posts: 5396
Joined: March 15th, 2005, 5:32 pm
Location: Upstate Ohio, USA
Contact:

Post by L.A.R. Grizzly »

garethjmsaunders,

Unpack the .xpi file and "bump" the number up in the .rdf file. Repack the .xpi file and it should install.

Jazkal,

Here is a link to my modified .xpi. The file will be available for about 5 weeks.

Modified Autofill 0.2 XPI File

Note: The above procedure of modifying the prefs.js file will still have to be done. The modified .xpi is just for installation.
Last edited by L.A.R. Grizzly on December 28th, 2005, 9:00 pm, edited 1 time in total.
Win7 Pro SP1 64 Bit
Comodo Internet Security
Pale Moon 33.0.2, Epyrus Mail 2.1.2, Firefox 115.8.0esr, Thunderbird 115.8.1, and SeaMonkey 2.53.18
garethjmsaunders
Posts: 3
Joined: November 30th, 2005, 7:12 am
Location: Edinburgh UK

Post by garethjmsaunders »

Jazkal,

you're a star! I did that, followed the instructions to the letter and I still got that error. Unzipped the .xpi file, changed the maxVersion number, reZipped and renamed to .xpi and that was the error I got.

Your version worked a treat. Brilliant! Thank you so much.

Gareth J M Saunders
Gareth J M Saunders
Edinburgh, UK

http://blog.garethjmsaunders.co.uk/
User avatar
L.A.R. Grizzly
Posts: 5396
Joined: March 15th, 2005, 5:32 pm
Location: Upstate Ohio, USA
Contact:

Post by L.A.R. Grizzly »

garethjmsaunders,

I don't know why you were getting errors. That's all I did to the .xpi that I posted.
I forgot to mention that you should have the compression turned off when repacking
the file. You should set the compression to "store" or "0" compression. Maybe that's
what was giving you trouble. Glad everything worked out!
Win7 Pro SP1 64 Bit
Comodo Internet Security
Pale Moon 33.0.2, Epyrus Mail 2.1.2, Firefox 115.8.0esr, Thunderbird 115.8.1, and SeaMonkey 2.53.18
sclark45
Posts: 1
Joined: December 5th, 2005, 3:53 pm
Location: USA

Post by sclark45 »

L.A.R. Grizzly

I followed your instructions and it works perfectly.

Thank you for sharing

Kudos
garethjmsaunders
Posts: 3
Joined: November 30th, 2005, 7:12 am
Location: Edinburgh UK

Post by garethjmsaunders »

Ahh ... just returned to this -- thanks for reposting L.A.R. Grizzly, that was the problem: I was repacking with compression. Thanks for clearing that up for me.

Gareth
Gareth J M Saunders
Edinburgh, UK

http://blog.garethjmsaunders.co.uk/
Post Reply