Skip to content

Commit 58f9c66

Browse files
authored
fix: segmentfault icon cors (#47)
1 parent 698dbe2 commit 58f9c66

4 files changed

Lines changed: 11 additions & 4 deletions

File tree

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
# misc
22
.DS_Store
3-
*.zip
3+
*.zip
4+
.vscode
5+
.idea
6+
.cursor
7+
.fleet
8+
.zed
9+
.windsurf
10+
.kiro

src/inject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
{ id: 'wechat', name: 'WeChat', icon: 'https://res.wx.qq.com/a/wx_fed/assets/res/NTI4MWU5.ico', title: '微信公众号', type: 'wechat' },
6969
{ id: 'zhihu', name: 'Zhihu', icon: 'https://static.zhihu.com/heifetz/favicon.ico', title: '知乎', type: 'zhihu' },
7070
{ id: 'toutiao', name: 'Toutiao', icon: 'https://sf3-cdn-tos.toutiaostatic.com/obj/eden-cn/uhbfnupkbps/toutiao_favicon.ico', title: '今日头条', type: 'toutiao' },
71-
{ id: 'segmentfault', name: 'SegmentFault', icon: 'https://youke2.picui.cn/s1/2025/12/21/6947b2935a41e.ico', title: '思否', type: 'segmentfault' },
71+
{ id: 'segmentfault', name: 'SegmentFault', icon: 'https://www.google.com/s2/favicons?domain=segmentfault.com&sz=32', title: '思否', type: 'segmentfault' },
7272
{ id: 'cnblogs', name: 'Cnblogs', icon: 'https://www.cnblogs.com/favicon.ico', title: '博客园', type: 'cnblogs' },
7373
{ id: 'oschina', name: 'OSChina', icon: 'https://wsrv.nl/?url=static.oschina.net/new-osc/img/favicon.ico', title: '开源中国', type: 'oschina' },
7474
{ id: 'cto51', name: '51CTO', icon: 'https://www.google.com/s2/favicons?domain=51cto.com&sz=32', title: '51CTO', type: 'cto51' },

src/platforms/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const BASE_PLATFORMS = [
5656
{
5757
id: 'segmentfault',
5858
name: 'SegmentFault',
59-
icon: 'https://static.segmentfault.com/main_site_next/prod/favicon.ico',
59+
icon: 'https://www.google.com/s2/favicons?domain=segmentfault.com&sz=32',
6060
url: 'https://segmentfault.com',
6161
publishUrl: 'https://segmentfault.com/write',
6262
title: '思否',

src/platforms/segmentfault.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const SegmentFaultPlatform = {
33
id: 'segmentfault',
44
name: 'SegmentFault',
5-
icon: 'https://static.segmentfault.com/main_site_next/prod/favicon.ico',
5+
icon: 'https://www.google.com/s2/favicons?domain=segmentfault.com&sz=32',
66
url: 'https://segmentfault.com',
77
publishUrl: 'https://segmentfault.com/write',
88
title: '思否',

0 commit comments

Comments
 (0)