This article is a mirror article of machine translation, please click here to jump to the original article.

View: 7480|Reply: 0

Use Google Chrome as a mobile emulator

[Copy link]
Posted on 1/14/2015 9:27:38 PM | | | |
Many websites use User-Agent to determine the browser type, if it is a 3G mobile phone, it will display the content of the mobile phone page, and if it is an ordinary browser, it will display the content of the ordinary web page.

Google Chrome browser can be used as a 3G mobile phone emulator. Enter the following command in [Start] -> [Run] in Windows, start Google Chrome, you can simulate the browser of the corresponding mobile phone to access the 3G mobile phone web page:

Google Android:
chrome.exe --user-agent="Mozilla/5.0 (Linux; U; Android 2.2; en-us; Nexus One Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"


Apple iPhone 4:
chrome.exe --user-agent="Mozilla/5.0 (iPhone; CPU iPhone OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Mobile/9A405"


Apple iPad 2:
chrome.exe --user-agent="Mozilla/5.0 (iPad; CPU OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Mobile/9A405"


Nokia N97:
chrome.exe --user-agent="Mozilla/5.0 (SymbianOS/9.4; Series60/5.0 NokiaN97-1/20.0.019; Profile/MIDP-2.1 Configuration/CLDC-1.1) AppleWebKit/525 (KHTML, like Gecko) BrowserNG/7.1.18124"


Try it out, and access it with Android, iPhone, and Nokia respectivelyhttp://www.163.com/http://blog.zyan.cc/http://www.google.com.hk/http://3g.qq.comhttp://t.sina.cnThese 3G mobile web pages, see what the difference is.




The image below is a page that I used Google Chrome to simulate an Android user visiting: www.qq.com







Previous:iPhone-sized box web server Cubieboard
Next:Cyberspace Administration of China: Weibo and Tieba will have a real-name system this year
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com