With fiddler can set the browser's UA and manual--chrome analog mobile Browser (ios/android) Three ways, the pro-Test error!

Source: Internet
Author: User
Tags chrome developer

The way to attach a software is to use Fiddler to set the browser's UA

The following 3 ways are manual

by disguising the user-agent, the browser simulates Android device.

The first method: Create a new chrome shortcut

Right click on the Chrome browser icon on the desktop, select "Copy" in the Popup right-click menu and copy a copy of the icon to the desktop. Right-click the copy, select Properties, open the appropriate dialog box, and add the following statement after the characters in the Target text box: "--user-agent=" Android "", such as:

Note that the user is preceded by two "-" and there is a space between "Chrome.exe" and "--user". When you're sure, open the new Chrome shortcut and enter 3g.qq.com to browse to a page that looks like it's open on your phone. But I repeat the test is failure, what is the matter? I found out later that all the chrome pages that I had opened had to be closed before it was done, in other words, to get chrome out of the way and then open it.

Second method: Chrome developer mode

Create a new chrome page, then press F12 (or click Menu-Tools-Developer tools), then click the Small black serrated icon in the lower right corner, such as:

Switch to the "Overrides" tab, tick "User agent" and "Device Metrics" and select a different browser, different system option in the drop-down list under "User Agent", "Device metrics" The options show different resolutions depending on the selection.

Note: If you do not have the appropriate "User Agent" option, you can select the bottom of the other, customize the Google Chrome browser User agent, and then customize the resolution with the Device metrics option.

Third Way: Simulate iphone and Android phones at once

Start – Start the browser by entering the following command in the run:

Simulate 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 "

Analog Apple iphone:

Chrome.exe--user-agent= "mozilla/5.0 (IPad; U CPU os 3_2_2 like Mac os X; En-US) applewebkit/531.21.10 (khtml, like Gecko) version/4.0.4 mobile/7b500 safari/531.21.10 "

This method is only used in special cases, because restarting Chrome will not restore normal user-agent, so it is a one-time, recommended use of one or two two methods.

With fiddler can set the browser's UA and manual--chrome analog mobile Browser (ios/android) Three ways, the pro-Test error!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.