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

前端 未结 11 2136
心在旅途
心在旅途 2021-02-07 04:57

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 U

11条回答
  •  旧时难觅i
    2021-02-07 05:08

    ColBeseder correctly brings up Fiddler (http://www.fiddler2.com/fiddler2/version.asp) as a solution to your issue.

    Fiddler is perfectly capable of handling and decrypting HTTPS traffic as well - see the documentation on the page for how to configure it.

    To directly answer the OP question, you can use the autoresponder feature in Fiddler to hack your production JS for testing.

    Enable the autoresponder tab in Fiddler, making sure to leave pass through for unmatched requests checked, entering the URL of the JS files you want to substitute as the pattern. Select the response file from your local filesystem, and go to town!

    See http://yuiblog.com/blog/2008/06/27/fiddler/ (bottom of article is most relevant) for an example.

提交回复
热议问题