firefox 模拟手机
不想增加User Agent Switcher扩展,还是从Firefox本身下手。
- about:config
- 新建字符串
general.useragent.override
- 输入值
Opera/12.02 (Android 4.1; Linux; Opera Mobi/ADR-1111101157; U; en-US) Presto/2.9.201 Version/12.02
其他浏览器的User Agent String可以参见User Agent String.Com的List of User Agent Strings:
http://www.useragentstring.com/pages/useragentstring.php
基本包含了国外各种软硬件浏览器的UserAgent。
Chrome for Android的User-Agent参考官方的:
https://developers.google.com/chrome/mobile/docs/user-agent
方法2 安装 User Agent Switcher
Property | Value |
---|---|
IE6.0 | Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) |
IE7.0 | Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) |
IE8.0 | Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1) |
IE9.0 | Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.1) |
Firefox3.5 | Mozilla/5.0 (compatible; rv:1.9.1) Gecko/20090702 Firefox/3.5 |
Firefox3.6 | Mozilla/5.0 (compatible; rv:1.9.2) Gecko/20100101 Firefox/3.6 |
Firefox4.0 | Mozilla/5.0 (compatible; rv:2.0) Gecko/20110101 Firefox/4.0 |
Firefox6.0 | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2 |
Chrome11.0 | Mozilla/5.0 (compatible) AppleWebKit/534.21 (KHTML, like Gecko) Chrome/11.0.682.0 Safari/534.21 |
Safari5.0 | Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_7) AppleWebKit/534.16+ (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4 |
Opera11.0 | Opera/9.80 (compatible; U) Presto/2.7.39 Version/11.00 |
Maxthon3.0 | Mozilla/5.0 (compatible; U) AppleWebKit/533.1 (KHTML, like Gecko) Maxthon/3.0.8.2 Safari/533.1 |
iPhone | Mozilla/5.0 (iPhone; U; CPU OS 4_2_1 like Mac OS X) AppleWebKit/532.9 (KHTML, like Gecko) Version/5.0.3 Mobile/8B5097d Safari/6531.22.7 |
iPad | Mozilla/5.0 (iPad; U; CPU OS 4_2_1 like Mac OS X) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/4.0.2 Mobile/8C148 Safari/6533.18.5 |
Android | Mozilla/5.0 (Linux; U; Android 2.2) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1 |
Googlebot2.1 | Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) |
Msnbot1.1 | msnbot/1.1 (+http://search.msn.com/msnbot.htm) |