Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to add a javscript to every .html, .htm, .jsp request #128

Open
anjanb opened this issue Oct 13, 2015 · 1 comment
Open

how to add a javscript to every .html, .htm, .jsp request #128

anjanb opened this issue Oct 13, 2015 · 1 comment

Comments

@anjanb
Copy link

anjanb commented Oct 13, 2015

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></script>
@elazarl
Copy link
Owner

elazarl commented Oct 13, 2015

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
#128.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants