Firefox修改UserAgent伪装为手机浏览器的方法

有时候我们用PC版的firefox浏览器来调试手机页面,常常遇到无法访问的情况,因为某些网页不允许PC的浏览器访问。所以我们就想到用firefox修改UserAgent,用来伪装为其他手机浏览器,比如chrome、Opera Mobile等。

下面就是具体的方法:

1、在浏览器地址栏输入“about:config”

2、新建字符串“general.useragent.override”

3、输入伪装的UserAgent值

伪装成Opera Mobile输入:

Opera/12.02 (Android 4.1; Linux; Opera Mobi/ADR-1111101157; U; en-US) Presto/2.9.201 Version/12.02

伪装成iPhone的Safari浏览器输入:

Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543 Safari/419.3

伪装成iPhone下的Chrome浏览器输入:

Mozilla/5.0 (iPhone; U; CPU iPhone OS 5_1_1 like Mac OS X; en) AppleWebKit/534.46.0 (KHTML, like Gecko) CriOS/19.0.1084.60 Mobile/9B206 Safari/7534.48.3

伪装成Chrome手机端输入:

Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B)
AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile
Safari/535.19

 

20条评论

  1. I was very pleased to discover this site.
    I wanted to thank you for ones time for this particularly wonderful read!!

    I definitely savored every little bit of it and i also have
    you saved as a favorite to see new information in your web site.

  2. I really like it when individuals come together and share views.
    Great blog, keep it up!

  3. buick说道:

    If you desire to obtain much from this piece of writing then you have to apply such strategies to your won weblog.

  4. nexgen software说道:

    This is really fascinating, You are an excessively skilled blogger.
    I’ve joined your rss feed and stay up for searching for extra of your wonderful post.
    Additionally, I’ve shared your site in my social networks

  5. If you desire to improve your know-how only keep visiting this web site
    and be updated with the newest news update posted here.

  6. toyota rav4 2012说道:

    Great blog here! Also your website loads up fast! What web host are
    you using? Can I get your affiliate link to your host?
    I wish my website loaded up as fast as yours lol

  7. This is really interesting, You are a very skilled blogger.
    I have joined your rss feed and look forward to seeking more of your wonderful post.

    Also, I have shared your website in my social networks!

  8. market timing说道:

    Wow, wonderful blog layout! How long have you been blogging
    for? you made blogging look easy. The overall look of your site is great, as well as the content!

  9. Hello there! This blog post couldn’t be written any better!
    Reading through this article reminds me of my previous roommate!
    He constantly kept talking about this. I am going to send this
    information to him. Pretty sure he’ll have a very good read.

    Thanks for sharing!

  10. Hello to all, since I am truly eager of reading this blog’s post to be updated on a regular basis.
    It consists of fastidious material.

发表评论

电子邮件地址不会被公开。 必填项已用*标注