old_contents: /*
   * Configuration values needed in js codes
   *
   * NOTE:
   * Please use the following command to avoid accidentally committing personal changes
   * git update-index --assume-unchanged src/javascript/config.js
   *
   */
  
  function getAppId() {
    return localStorage.getItem('config.app_id') ? localStorage.getItem('config.app_id') :
                 /staging\.binary\.com/i.test(window.location.hostname) ? '1098' : '1';
  }
  
  function getSocketURL() {
      var server_url = localStorage.getItem('config.server_url'),
          loginid = $.cookie('loginid');
      if(!server_url) server_url =
          (/staging\.binary\.com/i.test(window.location.hostname) ? 'www2' :
              (loginid && !/^VRT/.test(loginid) ? 'green' : 'blue')
          ) + '.binaryws.com';
      return 'wss://' + server_url + '/websockets/v3';
  }
  
new_contents: /*
   * Configuration values needed in js codes
   *
   * NOTE:
   * Please use the following command to avoid accidentally committing personal changes
   * git update-index --assume-unchanged src/javascript/config.js
   *
   */
  
  function getAppId() {
    return localStorage.getItem('config.app_id') ? localStorage.getItem('config.app_id') :
                 /staging\.binary\.com/i.test(window.location.hostname) ? '1098' : '1';
  }
  
  function getSocketURL() {
      var server_url = localStorage.getItem('config.server_url'),
          bluePercent = 30;
      if(!server_url) server_url =
          (/staging\.binary\.com/i.test(window.location.hostname) ? 'www2' :
              (Math.random() * 100 > bluePercent ? 'green' : 'blue')
          ) + '.binaryws.com';
      return 'wss://' + server_url + '/websockets/v3';
  }
  
subject: Make blue/green percentage