How to change the url of webpage using javascript
<p>I want to write javascript code for any webpage such that if it contains some required text or value then change it's <code>url</code> or add something to it's <code>url</code> and again load the webpage with the updated <code>url</code>.</p>

<p>for example: open <code>www.google.co.in</code></p>

<p>Now I will check that if the <code>div</code> with <code>class</code> <code>logo-subtext</code> contains <code>India</code> like this</p>

<p><code>&lt;div class="logo-subtext"&gt;India&lt;/div&gt;</code></p>

<p>then change the url to <code>www.google.com</code> and reload the page.</p>

<p>I want to add this to my tamper monkey.</p>

<p>In India many websites are blocked. I want to open those websites by using <code>hidingnet.com</code>.</p>

<p>So if website is blocked then we are getting the following message:</p>

<p><code>*“This website/url has been blocked under instructions of the Competent Government Authority or in compliance to the orders of Hon’ble Court.”*</code></p>

<p>So for example: this page is blocked or <code>url</code></p>

<p><code>http://bleacherreport.com/articles/2605069-three-targets-for-tottenham-hotspur-to-hit-in-2016?</code></p>

<p>but I can open it by applying <code>hidingnet.com</code> in following way:</p>

<p><code>http://bleacherreport.com.hidingnet.com/articles/2605069-three-targets-for-tottenham-hotspur-to-hit-in-2016?</code></p>

<p>So I need help for the above.</p>