Skip to content

把 fetchIconByDomain 改成 scriptcat.org#1268

Open
cyfung1031 wants to merge 8 commits intoscriptscat:release/v1.3from
cyfung1031:pr-change-fetchIconByDomain
Open

把 fetchIconByDomain 改成 scriptcat.org#1268
cyfung1031 wants to merge 8 commits intoscriptscat:release/v1.3from
cyfung1031:pr-change-fetchIconByDomain

Conversation

@cyfung1031
Copy link
Collaborator

No description provided.

@CodFrm
Copy link
Member

CodFrm commented Feb 23, 2026

我想了一下,要不要和脚本站分开,这样方便提供更多脚本猫扩展需要的API:

https://ext.scriptcat.org/api/v1/open/favicons?domain=baidu.com&sz=64

@CodFrm
Copy link
Member

CodFrm commented Mar 2, 2026

本地的逻辑应该不用去掉,提供几个icon服务进行选择,放设置里面(具体哪个模块还要思考一下),默认scriptcat,然后本地/google/xxxxx

theluckystrike and others added 3 commits March 7, 2026 15:54
Google migrated the Chrome Web Store from `chrome.google.com/webstore`
to `chromewebstore.google.com`. This updates all CWS URLs across
README files to use the new domain.

The old URLs currently redirect, but will eventually stop working.
新增图标服务设置项,支持 ScriptCat / 本地获取 / Google 三种 provider,
默认使用 ScriptCat API。切换 provider 时自动清除 favicon 缓存。
同时增加了对接口返回异常状态码(>=300)的处理。
@CodFrm
Copy link
Member

CodFrm commented Mar 11, 2026

想要AI帮我提交回复的,结果理解错了


Summary

  • 新增图标服务设置项,支持 ScriptCat / 本地获取 / Google 三种 provider,默认使用 ScriptCat API
  • 在设置页面「界面」Card 中添加图标服务下拉选择框
  • 切换 provider 时自动清除 favicon 缓存(包括 IndexedDB 和 OPFS)
  • 增加对接口返回异常状态码(>=300)的处理,失败时使用默认图标
  • 添加 zh-CN / zh-TW / en-US / de-DE / ja-JP / ru-RU / vi-VN 多语言翻译

Closes #1268

Test plan

  • 设置页面「界面」Card 中正确显示图标服务选择项
  • 默认选中 ScriptCat,切换为 Local / Google 后保存生效
  • 切换 provider 后脚本列表的 favicon 使用新 provider 重新加载
  • 接口返回错误状态码时显示默认图标而非空白

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants