请选择 进入手机版 | 继续访问电脑版

网络科技

    今日:118| 主题:268147
收藏本版 (1)
互联网、科技极客的综合动态。

[其他] How to Change Your Browser’s User Agent Without Installing Any Extensions

[复制链接]
三次元 发表于 2016-10-9 17:59:53
522 16

立即注册CoLaBug.com会员,免费获得投稿人的专业资料,享用更多功能,玩转个人品牌!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

How to Change Your Browser’s User Agent Without Installing Any Extensions

How to Change Your Browser’s User Agent Without Installing Any Extensions

  If you ever wanted to make your web traffic seem like it was coming from a different browser–say, to trick a site that claims it’s incompatible with yours–you can. All popular browsers offer built-in user agent switchers, so you can change your user agent without installing any extensions.
   Websites identify browsers by their “user agents“. Change a browser’s user agent and it will report it’s a different browser to websites. This allows you to request web pages intended for different browsers–or even different devices, like smartphones and tablets.
  Google Chrome

  Chrome’s user agent switcher is part of its Developer Tools. Open them by clicking the menu button and selecting More Tools > Developer Tools. You can also use press Ctrl+Shift+I on your keyboard.
   

How to Change Your Browser’s User Agent Without Installing Any Extensions

How to Change Your Browser’s User Agent Without Installing Any Extensions

  Click the menu button to the right of the “Console” tab at at the bottom of the Developer Tools pane and select “Network Conditions”
  If you don’t see the console at the bottom, click the menu button at the top right corner of the Developer Tools pane–that’s the button just to the left of the “x”–and select “Show Console”.
   

How to Change Your Browser’s User Agent Without Installing Any Extensions

How to Change Your Browser’s User Agent Without Installing Any Extensions

  On the Network conditions tab, uncheck “Select automatically” next to User agent. You can then select a user agent from the list or copy and paste a custom user agent into the box.
  This setting is temporary. It only works while you have the Developer Tools pane open, and it only applies to the current tab.
   

How to Change Your Browser’s User Agent Without Installing Any Extensions

How to Change Your Browser’s User Agent Without Installing Any Extensions

  Mozilla Firefox

  In Mozilla Firefox, this option is buried on Firefox’s about:config page.
   To access the about:config page, type about:config into Firefox’s address bar and press Enter. You’ll see a warning–be careful when you change settings here, you could mess up Firefox’s settings.
   

How to Change Your Browser’s User Agent Without Installing Any Extensions

How to Change Your Browser’s User Agent Without Installing Any Extensions

   Type useragent into the filter box. We’re looking for the general.useragent.override preference, but it probably won’t exist on your system.
   

How to Change Your Browser’s User Agent Without Installing Any Extensions

How to Change Your Browser’s User Agent Without Installing Any Extensions

  To create the preference, right-click on the about:config page, point to New, and select String.
   

How to Change Your Browser’s User Agent Without Installing Any Extensions

How to Change Your Browser’s User Agent Without Installing Any Extensions

   Name the preference general.useragent.override .
   

How to Change Your Browser’s User Agent Without Installing Any Extensions

How to Change Your Browser’s User Agent Without Installing Any Extensions

  Enter your desired user agent as the value of the preference. You’ll have to look up your desired user agent on the web and enter it exactly. For example, the following user agent is used by Googlebot, Google’s web crawler:
  Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
   You can find extensive lists of user agents on various websites, such as this one .
   

How to Change Your Browser’s User Agent Without Installing Any Extensions

How to Change Your Browser’s User Agent Without Installing Any Extensions

  This setting applies to every open tab and persists until you change it, even if you close and reopen Firefox.
  To revert Firefox to the default user agent, right-click the “general.useragent.override” preference and select Reset.
   

How to Change Your Browser’s User Agent Without Installing Any Extensions

How to Change Your Browser’s User Agent Without Installing Any Extensions

  Microsoft Edge and Internet Explorer

  Microsoft Edge and Internet Explorer have user agent switchers in their developer tools, and they’re nearly identical. To open them, click the settings menu and select “F12 Developer Tools” or just press F12 on your keyboard.
   

How to Change Your Browser’s User Agent Without Installing Any Extensions

How to Change Your Browser’s User Agent Without Installing Any Extensions

   The developer tools will open in a separate pane at the bottom of the window. Click the “Emulation” tab and choose a user agent from the “User agent string” box. You can also select the “Custom” option in the User agent string list and type a custom user agent into the box. You can find extensive lists of user agents on various websites, such as this one .
  This setting is temporary. It only applies to the current tab, and only while the F12 Developer Tools pane is open.
   

How to Change Your Browser’s User Agent Without Installing Any Extensions

How to Change Your Browser’s User Agent Without Installing Any Extensions

  Apple Safari

  This option is available in Safari’s normally hidden Develop menu. To enable it, click Safari > Preferences. Select the “Advanced” tab and enable the “Show Develop menu in menu bar” option at the bottom of the window.
   

How to Change Your Browser’s User Agent Without Installing Any Extensions

How to Change Your Browser’s User Agent Without Installing Any Extensions

   Click Develop > User Agent and select the user agent you want to use in the list. If the user agent you want to use isn’t shown here, select “Other” and you can provide a custom user agent. You can find extensive lists of user agents on various websites, such as this one .
  This option only applies to the current tab. Other open tabs and tabs you open in the future will use the “Default” user agent.
   

How to Change Your Browser’s User Agent Without Installing Any Extensions

How to Change Your Browser’s User Agent Without Installing Any Extensions



上一篇:M43 相机集体上天,但走在松下后的这一位并不是奥林巴斯
下一篇:网易云信 IM 推送保障及网络优化实践
樊诗雨 发表于 2016-10-9 19:37:30
待我长发及腰,少年娶我可好?
回复 支持 反对

使用道具 举报

家冠霞 发表于 2016-10-9 19:38:44
路过!!!据说外面下人民币了!!!
回复 支持 反对

使用道具 举报

雅山 发表于 2016-10-9 19:56:08
三次元日后必成大器!
回复 支持 反对

使用道具 举报

Edwardpop 发表于 2016-10-9 20:18:48
我只是来看看的,这个世界还有太多的帖需要哥。哥祝楼主早日得到解答
回复 支持 反对

使用道具 举报

願做妳唯一的召喚獸 发表于 2016-10-9 20:24:33
我祝你孤独,并且长命百岁。
回复 支持 反对

使用道具 举报

如霜 发表于 2016-10-9 20:24:38
三次元高端大气上档次,鉴定完毕
回复 支持 反对

使用道具 举报

Ziessetesg 发表于 2016-10-10 02:06:09
支持你哈..
回复 支持 反对

使用道具 举报

青亦 发表于 2016-10-10 02:35:43
顶起!
回复 支持 反对

使用道具 举报

董瑞 发表于 2016-10-10 03:00:30
横溢的不只是才华,还有虫坛里的帖子
回复 支持 反对

使用道具 举报

*滑动验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

我要投稿

推荐阅读


回页顶回复上一篇下一篇回列表
手机版/CoLaBug.com ( 粤ICP备05003221号 | 文网文[2010]257号 )

© 2001-2017 Comsenz Inc. Design: Dean. DiscuzFans.

返回顶部 返回列表