browser extension to replace JavaScript file on a live site for testing
Alternatives:
- Using chrome you can change code on the fly (Developer tools -> Sources tab) and just save it (command + s)
- Use the LiveReload app that actually attaches an extension (that kind of does what you want) http://livereload.com/
This may not be the "exact" answer to your question, yet I almost sure one of those will do what you want to do.
The Opera browser has similar functionality:
- View source code of the page (
Ctrl+U
). - Make some changes. Or paste and replace the entire file.
- Press Apply Changes in the toolbar (
Ctrl+R
).
For editing linked resources (such as javascript or CSS files), use the following approach:
- Open the linked resource in a new tab.
- View "source code" of the resource (
Ctrl+U
). - Make some changes.
- Press Apply Changes in the toolbar (
Ctrl+R
). - Return to the tab with the webpage and realod (
Ctrl+R
).
Try http://www.fiddler2.com/fiddler2/version.asp
It does that and much more. But it's not a browser extension.
I think this is a task for a personal proxy. You can sniff traffic on the proxy and apply rules to modify requests/content