title: How to set navigator userAgent?
body: <p>Ok this is an edge case I have managed to land in. I am testing my app on the new Tizen OS. My JS code has thousands of navigator checks. Something like:</p>
  
  <pre><code>navigator.userAgent.toLocaleLowerCase().indexOf("android") || navigator.userAgent.toLocaleLowerCase().indexOf("iPad")
  </code></pre>
  
  <p>Now Tizen OS's userAgent on my test device does not have either of those strings. A lot of my css and JS is breaking as a result. I am in the POC mode right now and do not want to spend time in adding an additional check to all those conditions. Is there a way to programmatically set userAgent ? Something along the lines of:</p>
  
  <pre><code>navigator.userAgent += " Tizen" //does not work.
  </code></pre>
  
  <p><a href="https://developer.mozilla.org/en-US/docs/Web/API/NavigatorID.userAgent" rel="noreferrer">MDN</a> says its a read-write property. I am not able to modify it though. Help me with this. Either another smart way to spoof userAgent or the correct way to set this. Thanks.</p>