From 9e3b7dcd3207153128eb25833c91c2dffd5e4ac5 Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Tue, 10 Jun 2025 11:31:57 +0800 Subject: [PATCH] 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. --- META.js | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/META.js b/META.js index aeef632..184f66d 100644 --- a/META.js +++ b/META.js @@ -5,68 +5,71 @@ const BASE_ICON_SET_URL = "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 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. { name: "xAI", - icon: extractFavicon("x.ai"), + icon: `${SERVICE_ICON_SET_URL}xai.png`, }, { name: "OpenAI", - icon: extractFavicon("openai.com"), + icon: `${SERVICE_ICON_SET_URL}openai.png`, }, { name: "Gemini", - icon: extractFavicon("gemini.google.com"), + icon: `${SERVICE_ICON_SET_URL}gemini.png`, alias: "Google-Gemini", }, { name: "NotebookLM", - icon: extractFavicon("notebooklm.google"), + icon: `${SERVICE_ICON_SET_URL}notebooklm.png`, alias: "Google-NotebookLM", }, { name: "Anthropic", - icon: extractFavicon("www.anthropic.com"), + icon: `${SERVICE_ICON_SET_URL}anthropic.png`, }, { name: "Perplexity", - icon: extractFavicon("www.perplexity.ai"), + icon: `${SERVICE_ICON_SET_URL}perplexity.png`, }, { name: "rednote", - icon: extractFavicon("www.xiaohongshu.com"), + icon: `${SERVICE_ICON_SET_URL}xiaohongshu.png`, alias: "Xiaohongshu", }, { name: "bilibili", - icon: `${BASE_ICON_SET_URL}bilibili_2.png`, + icon: `${SERVICE_ICON_SET_URL}bilibili.png`, }, { name: "YouTube", - icon: `${BASE_ICON_SET_URL}YouTube.png`, + icon: `${SERVICE_ICON_SET_URL}youtube.png`, }, { name: "Telegram", - icon: `${BASE_ICON_SET_URL}Telegram_X.png`, + icon: `${SERVICE_ICON_SET_URL}telegram.png`, }, { name: "X", - icon: `${BASE_ICON_SET_URL}X.png`, + icon: `${SERVICE_ICON_SET_URL}x.png`, }, { name: "Binance", - icon: extractFavicon("www.binance.com"), + icon: `${SERVICE_ICON_SET_URL}binance.png`, }, { name: "Google", - icon: `${BASE_ICON_SET_URL}Google_Search.png`, + icon: `${SERVICE_ICON_SET_URL}google.png`, }, { name: "Microsoft", - icon: `${BASE_ICON_SET_URL}Microsoft.png`, + icon: `${SERVICE_ICON_SET_URL}microsoft.png`, }, { name: "Xget", @@ -74,11 +77,11 @@ const services = [ }, { name: "Cloudflare", - icon: `${BASE_ICON_SET_URL}Cloudflare.png`, + icon: `${SERVICE_ICON_SET_URL}cloudflare.png`, }, { name: "Speedtest", - icon: `${BASE_ICON_SET_URL}Speedtest.png`, + icon: `${SERVICE_ICON_SET_URL}speedtest.png`, }, ];