Override Javascript file in chrome

后端 未结 6 1326
天涯浪人
天涯浪人 2020-12-07 21:09

I would like to override a javascript file with my own version of the similar javascript file in chrome.

Let me explain:

1) Lets say a site \'http://example.

6条回答
  •  無奈伤痛
    2020-12-07 21:50

    You can do this very easily with a simple chrome extension like Requestly. Here are the steps:

    1. Create a Rule
    2. Select Redirect Rule
    3. Enter Source Url Equals - http://example.com/script/somescript.js
    4. Enter destination - http://localhost/script/somescript.js

    It should look something like this:

    You can also select "Contains/Matches" operator depending upon your use case.

提交回复
热议问题