From ba161fea80cacc8e2e22483e7bd13811d9284b88 Mon Sep 17 00:00:00 2001 From: Harry Yep Date: Sat, 10 Feb 2024 12:13:15 +0800 Subject: [PATCH 1/4] Google Bard -> Google Gemini (#17) --- README.md | 2 +- Source/non_ip/ai.conf | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f1e716417..b7e5ab431 100644 --- a/README.md +++ b/README.md @@ -295,7 +295,7 @@ rules: #### AI - 域名规则 人工维护 -- 包含 OpenAI、Bard、Claude、Perplexity 等 +- 包含 OpenAI、Google Gemini、Claude、Perplexity 等 **Surge** diff --git a/Source/non_ip/ai.conf b/Source/non_ip/ai.conf index d189a9cc0..a2239d26b 100644 --- a/Source/non_ip/ai.conf +++ b/Source/non_ip/ai.conf @@ -12,8 +12,9 @@ DOMAIN-SUFFIX,openaiapi-site.azureedge.net DOMAIN-SUFFIX,perplexity.ai DOMAIN-SUFFIX,anthropic.com DOMAIN-SUFFIX,claude.ai -# Google Bard +# Google Gemini DOMAIN-SUFFIX,bard.google.com +DOMAIN-SUFFIX,gemini.google.com # Google Generative Language API DOMAIN-SUFFIX,generativelanguage.googleapis.com # Google AI Studio From 0de9d7a2d50b019a92d3848de5380590e3dec5e0 Mon Sep 17 00:00:00 2001 From: SukkaW Date: Sat, 10 Feb 2024 21:59:05 +0800 Subject: [PATCH 2/4] Update CDN Hosts --- Source/domainset/cdn.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/domainset/cdn.conf b/Source/domainset/cdn.conf index fa9c7b9ae..ff2403345 100644 --- a/Source/domainset/cdn.conf +++ b/Source/domainset/cdn.conf @@ -59,6 +59,7 @@ cdn.mathjax.org cdn.embed.ly gitpkg-fork.vercel.sh cdn.redoc.ly +.staticimgly.com # Open Source Website and Services docs.rs @@ -2384,3 +2385,4 @@ images.design-editor.com assets.st-note.com filestore.fortinet.com .daumcdn.net +avts.wmlabs.net From dba1e13edf30ac308a7535f858110654d4fbd30c Mon Sep 17 00:00:00 2001 From: SukkaW Date: Sun, 11 Feb 2024 14:54:47 +0800 Subject: [PATCH 3/4] Perf: minor improvements --- Build/build-reject-domainset.ts | 1 - Build/lib/reject-data-source.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Build/build-reject-domainset.ts b/Build/build-reject-domainset.ts index 1387d985a..f7d0daef1 100644 --- a/Build/build-reject-domainset.ts +++ b/Build/build-reject-domainset.ts @@ -110,7 +110,6 @@ export const buildRejectDomainSet = task(import.meta.path, async (span) => { const trie = createTrie(domainSets); domainSuffixSet.forEach(suffix => { - domainSets.delete(suffix); trie.substractSetInPlaceFromFound(suffix, domainSets); }); filterRuleWhitelistDomainSets.forEach(suffix => { diff --git a/Build/lib/reject-data-source.ts b/Build/lib/reject-data-source.ts index fca00f452..4b4237520 100644 --- a/Build/lib/reject-data-source.ts +++ b/Build/lib/reject-data-source.ts @@ -212,7 +212,7 @@ export const PREDEFINED_WHITELIST = [ 'cdn.userreport.com', // https://github.com/AdguardTeam/AdGuardSDNSFilter/issues/1158 'ip-api.com', 'fastly-analytics.com', - 'syd1.digitaloceanspaces.com', + 'digitaloceanspaces.com', 's3.nl-ams.scw.cloud', 'geolocation-db.com', 'uploads.codesandbox.io', From 8d55e57039d75d1af8c3e8fbd13e0941b293e095 Mon Sep 17 00:00:00 2001 From: SukkaW Date: Sun, 11 Feb 2024 22:53:59 +0800 Subject: [PATCH 4/4] Update CDN Hosts --- Source/domainset/cdn.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/domainset/cdn.conf b/Source/domainset/cdn.conf index ff2403345..8a815f61e 100644 --- a/Source/domainset/cdn.conf +++ b/Source/domainset/cdn.conf @@ -186,6 +186,10 @@ formulae.brew.sh # PHP .getcomposer.org .packagist.org +# SimpleIcons +cdn.simpleicons.org +icons.ly +simpleicons.org # misc packages.httpie.io assets-production.packagecloud.io @@ -2386,3 +2390,4 @@ assets.st-note.com filestore.fortinet.com .daumcdn.net avts.wmlabs.net +object.innei.in