-
Notifications
You must be signed in to change notification settings - Fork 62
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 repace inline script or css #28
Comments
Hi @eimhee Your request should be quite simple to map to that but let me know if you have other issues. |
thanks, I want to replace js file , not just html. <script src="http://www.iteye.com/javascripts/application.js?1358214518" type="text/javascript"></script>how to replace url in the application.js? |
Hi @eimhee
Being replaced with
If you want to replace the js returned by the server then you need to intercept the request here |
Thanks, No9, some content in this file, I want to replace https://github.com/josh/jquery-selector-set to https://xxx.com/josh/jquery-selector-set |
ok so at the line I mentioned above
See https://nodejs.org/api/http.html#http_http_get_options_callback and http://dailyjs.com/2012/11/19/streams-part-2/ as a guide |
do we support modifying JSON response? |
We don't right now and my feeling is that it should probably be a separate library as people who want a tag parser may not want a JSON parser and vica versa. |
I want to replace url in script and css.
how to repace inline script or css
The text was updated successfully, but these errors were encountered: