How to emulate a WeChat built-in browser on your computer with chrome

Source: Internet
Author: User
Some pages can only be accessed in, and after copying the link on the computer to access it is to jump to another page.
How do I simulate a built-in browser on my computer with chrome?
Has anyone ever done anything successful?
Baidu changed useragent like not.

Reply content:

Some pages can only be accessed in, and after copying the link on the computer to access it is to jump to another page.
How do I simulate a built-in browser on my computer with chrome?
Has anyone ever done anything successful?
Baidu changed useragent like not.

安卓UAmozilla/5.0 (linux; u; android 4.1.2; zh-cn; mi-one plus build/jzo54k) applewebkit/534.30 (khtml, like gecko) version/4.0 mobile safari/534.30 micromessenger/5.0.1.352iPhone UAmozilla/5.0 (iphone; cpu iphone os 5_1_1 like mac os x) applewebkit/534.46 (khtml, like gecko) mobile/9b206 micromessenger/5.0JS判断是否浏览器function isWeixinBrowser(){    var ua = navigator.userAgent.toLowerCase();    return (/micromessenger/.test(ua)) ? true : false ;}

How to modify the UA of Chrome
1, the use of script modification
Http://www.zimohan.com/wldd/78.html
2. Using Chrome extensions
Http://archives.guao.hk/posts/chrome-extension-chromeleon-user-agent-spoofer.html

Built-in UA
http://dearb.me/archive/2013-10-30/weixin-browser-user-agent/

Debugging

I don't know if this fits your requirements.

Most of the pages are judged by the UA, but also some of the pages are provided by calling the Js-sdk method, if the call fails the description is not within the browser environment, you can try to mock these APIs

The way to modify the UA seems to not work, the Web page may be judged by JSSDK.
Is there any way or plug-in prohibit Web page automatically jump?

Should not, if use JSSDK, he should be called the browser private API to determine whether it is, but there is no such API in Chrome.

Forge Browser Http_user_agent
Http://www.dayecn.com/science/859_2.html
Look at this article.

  • 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.