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

前端 未结 11 2124
心在旅途
心在旅途 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条回答
  •  無奈伤痛
    2021-02-07 05:31

    The Opera browser has similar functionality:

    1. View source code of the page (Ctrl+U).
    2. Make some changes. Or paste and replace the entire file.
    3. Press Apply Changes in the toolbar (Ctrl+R).

    For editing linked resources (such as javascript or CSS files), use the following approach:

    1. Open the linked resource in a new tab.
    2. View "source code" of the resource (Ctrl+U).
    3. Make some changes.
    4. Press Apply Changes in the toolbar (Ctrl+R).
    5. Return to the tab with the webpage and realod (Ctrl+R).

提交回复
热议问题