是否能够通过extension的方式,在加载前更改页面上的js到本地路径?
Content Script 配置 run_at
为 document_start
就可以在执行其它脚本前植入代码。
In the case of "document_start", the files are injected after any files from css, but before any other DOM is constructed or any other script is run.
10 回答11.1k 阅读
6 回答3k 阅读
5 回答4.8k 阅读✓ 已解决
4 回答3.1k 阅读✓ 已解决
2 回答2.7k 阅读✓ 已解决
3 回答2.3k 阅读✓ 已解决
3 回答2.1k 阅读✓ 已解决
我经常用的两种方法
第一个是nginx在本机设置代理
第二个是在某一个js中断点,执行到断点时,切回console,在这里执行的js,就会被替换到内存中,在页面执行。