Open anjanb opened 9 years ago
Parse the HTML and inject the JS there.
On Tue, Oct 13, 2015 at 5:45 PM, anjanb notifications@github.com wrote:
I'd like to inject a script like below into all the responses for requests coming from the browser. This should happen if the browser is requesting for .jsp, .html, .htm, .shtml, and not for requests for .css, .js, .jpg, etc.
How can I do it ?
— Reply to this email directly or view it on GitHub https://github.com/elazarl/goproxy/issues/128.
I'd like to inject a script like below into all the responses for requests coming from the browser. This should happen if the browser is requesting for .jsp, .html, .htm, .shtml, and not for requests for .css, .js, .jpg, etc.
How can I do it ?
<script type="text" scr="foo.js>