title: Stop window.location execution in global context
body: <p>I want to stop execution of window.location as in below when a page loads:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  alert('Bid closed ');
  window.location = '/index.html';
  &lt;/script&gt;
  </code></pre>
  
  <p>I'm able to bypass <code>alert</code> message by replacing <code>alert</code> function during <code>document_start</code> in the manifest.json. But unable to stop window.location from executing.</p>