title: Change the IP-adress of a url in Chrome using a regular expression or similar
body: <p>I work in a environment where I have to change a ip-adress in the hosts-file a lot.</p>
  
  <p>The situation:</p>
  
  <p>MyDomain.com runs local for development and on a public ip adress. I would like to add a button to chrome who will switch between the ip's.</p>
  
  <p>By example:</p>
  
  <ol>
  <li>Click button to run route MyDomain.com from 192.168.0.1</li>
  <li>Click button to run route MyDOmain.com from 89.12.11.10</li>
  </ol>
  
  <p>Please note:
  I can not view the website by just approaching the ip-adress. It needs a approach with the full domain www.MyDomain.com.</p>
  
  <p>This looks like a very close solution but misses the route from the ip:</p>
  
  <p><a href="https://stackoverflow.com/questions/2138750/change-the-current-url-in-chrome-using-a-regular-expression-or-similar/2160762#2160762">Change the current URL in Chrome using a regular expression or similar</a></p>
  
  <p>Does someone know how I can accomplish this for Google Chrome? Is it even possible with javascript?</p>