用户切换到桌面版后,Android 版 Chrome 的用户代理是什么?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11742195/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 08:41:02  来源:igfitidea点击:

What's the user agent of Chrome for Android after the user switches it to desktop version?

androidgoogle-chromemobileuser-agentchrome-for-android

提问by weilou

We know Chrome for Android's user agent is:

我们知道 Chrome for Android 的用户代理是:

Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19

Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19

We also know the latest version of Chrome for Android provided a new feature which allows users to manually switch their Chrome for Android to a desktop version via graphic user interface.

我们还知道最新版本的 Android 版 Chrome 提供了一项新功能,允许用户通过图形用户界面手动将其 Android 版 Chrome 切换到桌面版本。

I wanna know the user agent of Chrome for Android after it's switched to desktop version by users.

我想知道 Chrome for Android 在用户切换到桌面版本后的用户代理。

回答by Majix

After toggling the "Request desktop site" in the latest Chrome for Android, the User Agent is reported as:

在最新的 Android 版 Chrome 中切换“请求桌面站点”后,用户代理报告为:

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.45 Safari/535.19

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.45 Safari/535.19

For reference, this is the default Chrome User Agent on Android 4.1:

作为参考,这是 Android 4.1 上的默认 Chrome 用户代理:

Mozilla/5.0 (Linux; Android 4.1.1; Galaxy Nexus Build/JRO03C) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19

Mozilla/5.0 (Linux; Android 4.1.1; Galaxy Nexus Build/JRO03C) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19