chromebook刷机_如何为不支持Chrome操作系统的网站欺骗Chromebook用户代理

chromebook刷机_如何为不支持Chrome操作系统的网站欺骗Chromebook用户代理

chromebook刷机

chromebook刷机_如何为不支持Chrome操作系统的网站欺骗Chromebook用户代理

Not all browsers handle websites the same, and if they don’t support your operating system or browser, you could be denied access. Luckily, you can spoof the user agent on Chrome OS to make it look like you use a completely different system.

并非所有浏览器都使用相同的网站,如果它们不支持您的操作系统或浏览器,则可能会拒绝您的访问。 幸运的是,您可以欺骗Chrome操作系统上的用户代理,使其看起来像您使用的是完全不同的系统。

Websites identify incoming connections by their user agent—a line of text sent in the HTTPS header with the browser name, version, and operating system. The reason they do this is to determine how to render the page specific to your device. One of the more common uses is to differentiate the desktop view from a mobile layout. However, sometimes you might need to spoof the user agent to trick a site that claims it’s incompatible with your browser.

网站通过其用户代理来识别传入的连接,即在HTTPS标头中发送的带有浏览器名称,版本和操作系统的一行文本。 他们这样做的原因是确定如何呈现特定于您的设备的页面。 最常见的用途之一是将桌面视图与移动布局区分开来。 但是,有时您可能需要欺骗用户代理,以欺骗声称与浏览器不兼容的网站。

如何更改您的用户代理 (How to Change Your User Agent)

To get started, open Chrome, click the three dots, and then select More Tools > Developer Tools. Alternatively, you can press Ctrl+Shift+I on the keyboard.

首先,请打开Chrome,点击三个点,然后选择更多工具>开发者工具。 或者,您可以按键盘上的Ctrl + Shift + I。

chromebook刷机_如何为不支持Chrome操作系统的网站欺骗Chromebook用户代理

Click “Network Conditions,” located at the bottom of the Developer Tools pane.

单击“开发人员工具”窗格底部的“网络条件”。

chromebook刷机_如何为不支持Chrome操作系统的网站欺骗Chromebook用户代理

If you don’t see this option, click the menu icon, and then select More Tools > Network Conditions to enable it.

如果看不到此选项,请单击菜单图标,然后选择“更多工具”>“网络条件”以启用它。

chromebook刷机_如何为不支持Chrome操作系统的网站欺骗Chromebook用户代理

Under the User Agent section, uncheck “Select Automatically.”

在“用户代理”部分下,取消选中“自动选择”。

chromebook刷机_如何为不支持Chrome操作系统的网站欺骗Chromebook用户代理

Chrome offers a long list of pre-configured user agent templates you can select from the drop-down menu.

Chrome提供了很长的预配置用户代理模板列表,您可以从下拉菜单中选择。

chromebook刷机_如何为不支持Chrome操作系统的网站欺骗Chromebook用户代理

If there is a specific user agent you want to use that isn’t listed in the drop-down menu, you can copy and paste a custom one into the text field underneath.

如果下拉菜单中没有列出您要使用的特定用户代理,则可以将自定义的用户代理复制并粘贴到下面的文本字段中。

chromebook刷机_如何为不支持Chrome操作系统的网站欺骗Chromebook用户代理

Afterward—with the Developer Tool pane still open in the current tab—go to any website, and the user agent is set to the custom one you specified until you close Developer Tools.

然后,在“开发者工具”窗格仍在当前选项卡中打开的情况下,转到任何网站,并且将用户代理设置为您指定的自定义对象,直到关闭“开发者工具”为止。

chromebook刷机_如何为不支持Chrome操作系统的网站欺骗Chromebook用户代理

You can even get a little creative with it!

您甚至可以获得一点创意!

chromebook刷机_如何为不支持Chrome操作系统的网站欺骗Chromebook用户代理

User agent spoofing is a temporary setting that stays active only while Developer Tools is open and in the current tab. After you close the Developer Tool, your user agent goes back to the default selection by Chrome.

用户代理欺骗是一个临时设置,仅在打开开发人员工具并在当前选项卡中保持有效。 关闭开发者工具后,您的用户代理会返回到Chrome的默认选择。

翻译自: https://www.howtogeek.com/425691/how-to-spoof-your-chromebook-user-agent-for-sites-that-don’t-support-chrome-os/

chromebook刷机