Вопрос

If an webapp I am running did a GET on a javascript file but I wanted to intercept that GET and provide a different javascript file could I do that?

What would be the easiest method?

To give a frame of a reference I am writing a meteor application and the server database got torched. My only hope seems to be to take a cached version of the application.js and inject it because I believe mostly everything can be rebuilt from that.

Это было полезно?

Решение

You can edit the existing JavaScript code.

Not sure how to replace the JavaScript file.

Press F12 it bring the developer tools at bottom of your page .

Go to resource and select your JavaScript file

It will open inside editor(right side) there you can modify your script.

enter image description here

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top