在Chrome中模仿iPhone用户代理? [英] Mimicking iPhone user agent in Chrome?
问题描述
我正在修补一个为手机添加皮肤的phpbb mod,并在我的电脑上工作,我想模仿一个iphone。在Firefox中,我设法使用带有内置iphone功能的用户代理切换器扩展来完成此操作:
https://addons.mozilla.org/en-us/firefox/addon/user-agent-switcher /
然而,在Chrome(我更喜欢)中,我无法做到这一点。我下载了似乎是相关扩展名的内容:
https://chrome.google.com/extensions/detail/aafciojnlamllgpkpdkbamkfgbofhgcj?hl=he
它不附带一个内置的iPhone模式,所以我添加了以下用户代理:
$ b
Mozilla / 5.0(iPhone; U;像Mac OS一样的CPU X; en)AppleWebKit / 420 +(KHTML,如Gecko)Version / 3.0 Mobile / 1A543 Safari / 419.3
然而,似乎完全没有效果 - 页面加载正常,而不是在移动皮肤中。
您可以更改chrome用户代理从命令行运行它:
chrome.exe --user-agent =用户代理字符串
请查看此页获取更多信息
I'm tinkering with a phpbb mod which adds a skin for mobile phones, and to work on it in my computer I want to mimic an iphone. In Firefox I manage to do this using the "user agent switcher" extension which comes with built-in "iphone" feature:
https://addons.mozilla.org/en-us/firefox/addon/user-agent-switcher/
However, in Chrome (which I prefer) I cannot make this happen. I downloaded what seemed to be the relevant extension:
https://chrome.google.com/extensions/detail/aafciojnlamllgpkpdkbamkfgbofhgcj?hl=he
It doesn't come with a built-in iPhone mode, so I added the following user agent:
"Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543 Safari/419.3"
However, this seems to have absolutely no effect - the pages load normally and not in the mobile skin.
You can change chrome user agent by running it from command line:
chrome.exe --user-agent="User Agent String"
check out This Page for more information
这篇关于在Chrome中模仿iPhone用户代理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!