title: How to replace Javascript of production website with local Javascript?
body: <p>On my production website, I have compiled Javascript.</p>
  
  <pre><code>&lt;script src="/js/mycode.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>It would be very convient for debugging if I could make my browser replace that with</p>
  
  <pre><code>&lt;script src="http://localhost/js/mycode1.js"&gt;&lt;/script&gt;
  &lt;script src="http://localhost/js/mycode2.js"&gt;&lt;/script&gt;
  ...
  </code></pre>
  
  <p>I know I could manipulate the DOM using something like Greasemonkey userscripts, but I couldn't come up with a solution which would prevent the execution of "mycode.min.js".</p>
  
  <p>Any ideas?</p>