Requirements: Need to debug a piece of js code on other people's websites, add or modify some function content, because there is no permission of other people's websites, you can't log in to other people's servers to replace the code, this article uses Chrome browser to modify the website js, css source code.
First, open the target site using Google Chrome Chrome, F12 open developer tools,Locate the source tab -> override, as shown in the figure below:
clickselect folder for override, that is, choose a folder to save our modified js, css and other files, as shown in the figure below:
Switch back to the Page tab, select a js file to make changes, and after the modification is complete, CTRL + S to save, as shown in the figure below:
Refresh the webpage and you can see that the js code we modified has been successfully executed, as shown in the figure below:
(End)
|