Using Google Chrome’s override feature to change the user agent - gHacks Tech News

Using Google Chrome’s override feature to change the user agent

Google Chrome ships with a set of built-in developer tools that users of the browser can make use. While they aim at web developers to help them plan and create websites, and edit existing sites, they can be quite useful for regular users, that is non-developers, as well.

Today I’d like to guide you through the browser’s override feature. What this allows you to do basically is to override default data of the browser. Let me give you an example so that this becomes understandable. One of the things you can do with overrides is pick another user agent for the browser. You do not really need to download and install an extension for that anymore, as you can use the browser’s override mechanism instead for that. While it is only a temporary change, it may prove useful enough for the majority of users who need to change user agents from time to time.

The following overrides are available:

  • User Agent – Change the default Chrome user agent to a different one. You can pick from desktop and mobile user agents added as presets or use the “other” option to set a custom user agent.
  • Device Metrics – Modify the screen resolution and font scale factor
  • Override Geolocation – Set a new geolocation position.
  • Override Device orientation
  • Emulate touch events
  • Emulate CSS media

To use the overrides, press Ctrl-Shift-i on the keyboard to open Chrome’s Developer bar at the bottom of the screen. You can alternatively click on the settings button at the top right, and select Tools > Developer Tools.

When the console opens, click on the settings button at the lower right corner of that interface, and switch to Overrides when the settings open up.

google chrome overrides screenshot

Note that the changes that you make here are only temporary. You need to select them for the page you want to use them. They won’t be active in other tabs in the browser.

The user agent switcher is probably the most interesting feature here. It can come in handy if you need to use a different user agent on a website to access different contents it makes available for that user agent. Note that selecting mobile user agents here will automatically change the device metrics as well. You can disable that though again by unchecking the appropriate box.

All settings are reset when you close the overrides window again.

We need your help

Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.

If you like our content, and would like to help, please consider making a contribution:

Comments

  1. Fahmy Corporation (FREE Software) said on March 6, 2013 at 8:05 pm
    Reply

    You can use “User-Agent Switcher” Chrome Extension as an alternative of this Feature :
    https://chrome.google.com/webstore/detail/user-agent-switcher/lkmofgnohbedopheiphabfhfjgkhfcgf

  2. Marseiller said on December 9, 2013 at 7:00 pm
    Reply

    yes, it is a good tool from part of google developers.

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

Please note that your comment may not appear immediately after you post it.