Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

browser extension to replace JavaScript file on a live site for testing

Tags:

I'm looking for a browser extension (Firefox, Chrome) allowing to replace a Javascript file on a live Web site to do some testing/hacking.

Basically, it should take a URL and load another one instead (locally or on a HTTP development server).

Any idea?

like image 311
Grégoire Cachet Avatar asked Jun 22 '10 12:06

Grégoire Cachet


People also ask

How do I run a .JS file in my browser?

To execute JavaScript in a browser you have two options — either put it inside a script element anywhere inside an HTML document, or put it inside an external JavaScript file (with a . js extension) and then reference that file inside the HTML document using an empty script element with a src attribute.

Can you make a Chrome extension with JavaScript?

A chrome extension is a program that is installed in the Chrome browser that enhances the functionality of the browser. You can build one easily using web technologies like HTML, CSS, and JavaScript.

How upload local js file in HTML?

Use Chrome browser and with the Web Server for Chrome extension, set a default folder and put your linked html/js files in there, browse to 127.0. 0.1:8887 (0r whatever the port is set at) in Chrome and open the developers panel & console. You can then interact with your html/js scripts in the console.


1 Answers

Try http://www.fiddler2.com/fiddler2/version.asp

It does that and much more. But it's not a browser extension.

like image 58
ColBeseder Avatar answered Nov 11 '22 22:11

ColBeseder