@CodFrm <img width="865" height="491" alt="Image" src="https://github.com/user-attachments/assets/c1bf1b83-c871-479e-bbd5-b4f1b0e536a5" /> 我大概理解你用 `chrome.declarativeNetRequest.updateDynamicRules` 然后重定向到 `docs/script_installation/#url=` 再进行安装 那,为什么要外连到 `https://docs.scriptcat.org` 转至 扩充的页面不行吗? 假如我的网络上不了 `https://docs.scriptcat.org`,或者 `https://docs.scriptcat.org`坏了,或者日后`https://docs.scriptcat.org`转网域了 那么我的脚本猫就无法安装脚本对吧?
Activity
CodFrm commentedon Sep 2, 2025
扩展页我不确定能不能触发 chrome.webRequest.onResponseStarted,
网络无法访问 https://docs.scriptcat.org 也是可以触发这个事件的貌似不太对,不应该用
onResponseStarted应该用onBeforeSendHeaders/onBeforeRequest之类,网络无法访问确实就会出问题了不知道当时为什么改掉了 0d9ba53 (不过肯定不是为了修bug)
🐛 修复网络无法访问安装中间页时无法触发安装的问题 #705
cyfung1031 commentedon Sep 3, 2025
@CodFrm 所以結論是,還是要轉向至 https://docs.scriptcat.org/ 而不能轉向至 擴充的頁面?
CodFrm commentedon Sep 3, 2025
是的 先不做变动吧