How can I fake/switch the User-Agent in Firefox 4? The User Agent Switcher Add-On doesnt seem to work with Firefox 4. I have firebug, but I'm unaware of any feature for switching user-agent in it

link|improve this question

80% accept rate
feedback

migrated from stackoverflow.com May 15 '11 at 6:36

This question came from our site for professional and enthusiast programmers.

2 Answers

up vote 1 down vote accepted

User agent switcher version 0.7.3 claims to support Firefox 4, and I've been using it with FF4 for a while. I just tested it on whatsmyuseragent.com and it seemd to work fine.

link|improve this answer
got it-- just realized that i had to switch the menu back on.. firefox 4 will take some getting used to – babonk May 15 '11 at 20:45
feedback

In the address bar type:

about:config

In the filter type:

general.useragent.override
link|improve this answer
Nothing with that value listed right now.. should I right click and press "New"? – babonk May 15 '11 at 3:20
by the way thanks for making me aware of the fact I have had my work machine's FF useragent set to "googlebot" for a VERY long time. Not a good idea, since some weaker javascript code uses useragent to change it's behavior. A better approach is to feature detect... – David May 15 '11 at 3:20
yes..they changed this not so long ago, I think the original version had it there.. – David May 15 '11 at 3:21
btw, I LOVE this site: whatsmyuseragent.com – David May 15 '11 at 3:25
Cool, your method worked.. Only thing that'd make it even better is if I could somehow just click a button to turn the override on and off rather than going to config every time – babonk May 15 '11 at 3:29
show 2 more comments
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.