![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Chrome Extension
雨过天晴~
这个作者很懒,什么都没留下…
展开
-
contentscript同步和background通信
//contentscript同步和background通信//contentscriptvar url = location.origin+"/abcdefghijk/lmnopqrst/uvwxyz/contentscript";var xhr = new XMLHttpRequest();xhr.onreadystatechange=function(){ if(xhr.readyState==4){ if(xhr.status==200){ console.log(xhr.re.原创 2021-03-23 01:37:46 · 402 阅读 · 0 评论 -
chrome扩展设置代理
permissions 需要 "proxy" const pacScriptConfig = { mode: 'pac_script', pacScript: { data: `function FindProxyForURL(url, host) { if (host == "baidu.com" || host == "www.baidu.com") { return "PROXY 127.0.0.1:10809";//走本地v2r原创 2020-12-06 16:57:46 · 2335 阅读 · 0 评论