firefox 類比手機

來源:互聯網
上載者:User

不想增加User Agent Switcher擴充,還是從Firefox本身下手。

  1. about:config
  2. 建立字串

    general.useragent.override

  3. 輸入值

    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)

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.