Archive for the ‘Firefox’ Category

Change Firefox user agent to mobile devices’

Often you need view your mobile web development on mobile devices. Wouldn’t it be better to have Firefox, web developer, firebug and etc to help you?
You can change your desktop Firefox user agent string to make a mobile web site thinks you are view it from a mobile device.
Here’s how to do it.

  • Type about:config in Firefox address bar. And read the scary warning and proceed
  • Right click on the settings and select New -> String.
  • Enter the preference name: general.useragent.override, enter string value: BlackBerry9000/4.6.0.266 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/120

Then you’ve done.

In above example, “BlackBerry9000/4.6.0.266 Profile/MIDP-2.0 Configuration/CLDC-1.1 VendorID/120″ is Blackberry Bold user agent.

Common user agents
iPhone user agent:
Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3
Windows mobile 6 user agent:
Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; IEMobile M.N)

In case you want to get full desktop power back, just select the settings you just added, and select “Reset”

  • Share/Save/Bookmark

Firefox Version 3.0.3 Self-signed Certificate Problem

I often upgrade Firefox to the latest versions with only conditions: google toolbar, Web Developer extension and Firebug extension supports.

I never ran into problems except with this latest version: 3.0.3

The problem: Websites with self-signed certificate are no longer working. It doesn’t give me the option to add exceptions like it used to be. (websites with exceptions added in previous versions are not effected.)

Tried this:
Go to Tools -> Option menu, select Advanced, on Encription tab click on View Certificates.
Go to Servers tab in Certificate Manager, click on Add Exception
Enter the host (https://localhost) then click on Get Certificate button.
Same problem

After some searching, some are saying to re-set one of Firefox settings in about:config. However it doesn’t work in my case.

I gave it another try in the Certification Manager by use the host name with port number. It worked!

I am glad it worked out and I don’t need to go back to 3.0.2 or wait for fix in the next version.

  • Share/Save/Bookmark