Update service icon URLs in META.js

Replaced `BASE_ICON_SET_URL` and `extractFavicon` references with a new `SERVICE_ICON_SET_URL` for consistency and to use updated icon paths. This change affects multiple service entries in the `services` array.
This commit is contained in:
xixu-me committed 2025-06-10 11:31:57 +08:00
1 parent 34aeabd3ca
commit 9e3b7dcd32
1 file changed
+19 -16
+19 -16
View File
@@ -5,68 +5,71 @@
const BASE_ICON_SET_URL = const BASE_ICON_SET_URL =
"https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/"; "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/";
const SERVICE_ICON_SET_URL =
"https://cdn.jsdelivr.net/gh/xixu-me/favicons@assets/";
const LOCATION_ICON_SET_URL = "https://img.icons8.com/color/144/"; const LOCATION_ICON_SET_URL = "https://img.icons8.com/color/144/";
const services = [ const services = [
// Routing rules are matched in order from top to bottom, with the rule at the top of the list taking precedence over the rules below it. // Routing rules are matched in order from top to bottom, with the rule at the top of the list taking precedence over the rules below it.
{ {
name: "xAI", name: "xAI",
icon: extractFavicon("x.ai"), icon: `${SERVICE_ICON_SET_URL}xai.png`,
}, },
{ {
name: "OpenAI", name: "OpenAI",
icon: extractFavicon("openai.com"), icon: `${SERVICE_ICON_SET_URL}openai.png`,
}, },
{ {
name: "Gemini", name: "Gemini",
icon: extractFavicon("gemini.google.com"), icon: `${SERVICE_ICON_SET_URL}gemini.png`,
alias: "Google-Gemini", alias: "Google-Gemini",
}, },
{ {
name: "NotebookLM", name: "NotebookLM",
icon: extractFavicon("notebooklm.google"), icon: `${SERVICE_ICON_SET_URL}notebooklm.png`,
alias: "Google-NotebookLM", alias: "Google-NotebookLM",
}, },
{ {
name: "Anthropic", name: "Anthropic",
icon: extractFavicon("www.anthropic.com"), icon: `${SERVICE_ICON_SET_URL}anthropic.png`,
}, },
{ {
name: "Perplexity", name: "Perplexity",
icon: extractFavicon("www.perplexity.ai"), icon: `${SERVICE_ICON_SET_URL}perplexity.png`,
}, },
{ {
name: "rednote", name: "rednote",
icon: extractFavicon("www.xiaohongshu.com"), icon: `${SERVICE_ICON_SET_URL}xiaohongshu.png`,
alias: "Xiaohongshu", alias: "Xiaohongshu",
}, },
{ {
name: "bilibili", name: "bilibili",
icon: `${BASE_ICON_SET_URL}bilibili_2.png`, icon: `${SERVICE_ICON_SET_URL}bilibili.png`,
}, },
{ {
name: "YouTube", name: "YouTube",
icon: `${BASE_ICON_SET_URL}YouTube.png`, icon: `${SERVICE_ICON_SET_URL}youtube.png`,
}, },
{ {
name: "Telegram", name: "Telegram",
icon: `${BASE_ICON_SET_URL}Telegram_X.png`, icon: `${SERVICE_ICON_SET_URL}telegram.png`,
}, },
{ {
name: "X", name: "X",
icon: `${BASE_ICON_SET_URL}X.png`, icon: `${SERVICE_ICON_SET_URL}x.png`,
}, },
{ {
name: "Binance", name: "Binance",
icon: extractFavicon("www.binance.com"), icon: `${SERVICE_ICON_SET_URL}binance.png`,
}, },
{ {
name: "Google", name: "Google",
icon: `${BASE_ICON_SET_URL}Google_Search.png`, icon: `${SERVICE_ICON_SET_URL}google.png`,
}, },
{ {
name: "Microsoft", name: "Microsoft",
icon: `${BASE_ICON_SET_URL}Microsoft.png`, icon: `${SERVICE_ICON_SET_URL}microsoft.png`,
}, },
{ {
name: "Xget", name: "Xget",
@@ -74,11 +77,11 @@ const services = [
}, },
{ {
name: "Cloudflare", name: "Cloudflare",
icon: `${BASE_ICON_SET_URL}Cloudflare.png`, icon: `${SERVICE_ICON_SET_URL}cloudflare.png`,
}, },
{ {
name: "Speedtest", name: "Speedtest",
icon: `${BASE_ICON_SET_URL}Speedtest.png`, icon: `${SERVICE_ICON_SET_URL}speedtest.png`,
}, },
]; ];