Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome Dev Tools : save custom geolocation in Dev Tools Presets

I use Developers Tools on Chrome for testing my javascript application.

But do you have an idea for change and SAVE presets of geolocation in Chrome Dev Tools (ALT+MAJ+I on mac) > Console > More (...) > Sensors > Geolocation ?

Thanks for help.

enter image description here

like image 401
ntpulse Avatar asked Nov 01 '16 20:11

ntpulse


People also ask

How do I set location in developer tools?

Open Google Chrome and Press Ctrl+Shift+I (for Windows) or Cmd+Option+I (for macOS) to open Chrome Developer Tools. 2. From the menu at the top right, choose Sensors, and then change the Geolocation drop-down menu to custom location.

How do I add a custom emulated device to Chrome?

To add a custom emulated device in Chrome, first open the dev tools with your favorite method. Then select toggle the device toolbar by clicking the phone/tablet icon or using the shortcut ctrl / cmd + shift + m . Open the dropdown to see all of the default devices available in Chrome.

How do I emulate a Chrome geolocation?

In a browser window, hit Ctrl+Shift+I (for Windows) or Cmd+Option+I (for MacOS). This will open the Chrome Developer Tools window. Hit Esc, then click the Console menu (three dots to the left of Console in the lower portion of the screen). Select Sensors and change the Geolocation dropdown to Custom location…


1 Answers

Alas, as of June 2017 this feature is not implemented yet.

But there's a feature request for this exact feature => https://bugs.chromium.org/p/chromium/issues/detail?id=649657

The best way to obtain what you are asking for is to:

  1. Log-in with a Google account.
  2. Visit the feature request link.
  3. Click on the star near the issue number.
  4. Hope Google will implement the feature ;-)
like image 116
Guido Walter Pettinari Avatar answered Oct 14 '22 00:10

Guido Walter Pettinari