mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 01:00:34 +08:00
Update Proxy / CDN / Download Hosts
Chore: minor infra changes Update CDN Hosts
This commit is contained in:
parent
7f6e631847
commit
855e1bf69b
@ -9,7 +9,7 @@ export function appendArrayInPlace<T>(dest: T[], source: T[]) {
|
||||
dest.push.apply(dest, source);
|
||||
} else {
|
||||
while (itemsLeft > 0) {
|
||||
const pushCount = Math.min(MAX_BLOCK_SIZE, itemsLeft);
|
||||
const pushCount = itemsLeft > MAX_BLOCK_SIZE ? MAX_BLOCK_SIZE : itemsLeft;
|
||||
const subSource = source.slice(offset, offset + pushCount);
|
||||
// eslint-disable-next-line prefer-spread -- performance
|
||||
dest.push.apply(dest, subSource);
|
||||
|
||||
@ -7,11 +7,8 @@ import fsp from 'fs/promises';
|
||||
const file = path.resolve(__dirname, '../../Source/domainset/cdn.conf');
|
||||
|
||||
group('read file by line', () => {
|
||||
bench('readline', () => processLineFromReadline(readFileByLine(file)));
|
||||
|
||||
bench('readFileByLine', () => processLineFromReadline(readFileByLine(file)));
|
||||
bench('fsp.readFile', () => fsp.readFile(file, 'utf-8').then((content) => content.split('\n').filter(processLine)));
|
||||
|
||||
bench('Bun.file', () => Bun.file(file).text().then((content) => content.split('\n').filter(processLine)));
|
||||
});
|
||||
|
||||
run();
|
||||
|
||||
@ -11,6 +11,7 @@ hv-monsterdb-data.skk.moe
|
||||
ohttp-relay1.fastly-edge.com
|
||||
google-ohttp-relay-safebrowsing.fastly-edge.com
|
||||
.privacy-gateway.cloudflare.com
|
||||
.proxy.safebrowsing.apple
|
||||
|
||||
# >> Open Source CDN
|
||||
.jsdelivr.net
|
||||
@ -467,14 +468,6 @@ amp.azure.net
|
||||
# Minecraft
|
||||
launchercontent.mojang.com
|
||||
|
||||
# >> File Pastebin / File Share
|
||||
.catbox.moe
|
||||
share.riseup.net
|
||||
.file.io
|
||||
.tmpfiles.org
|
||||
.filebin.net
|
||||
.temp.sh
|
||||
|
||||
# >> CodeSandbox
|
||||
uploads.codesandbox.io
|
||||
screenshots.codesandbox.io
|
||||
@ -1301,6 +1294,7 @@ steamcdn-a.akamaihd.net
|
||||
.ibytedtos.com
|
||||
.bytedapm.com
|
||||
.ttwstatic.com
|
||||
sf-coze-web-cdn.coze.com
|
||||
# eBay
|
||||
.ebayimg.com
|
||||
.ebaystatic.com
|
||||
@ -2668,3 +2662,4 @@ static.mytonwallet.io
|
||||
cdn.joincommunity.xyz
|
||||
statics.goorm.io
|
||||
.replicate.delivery
|
||||
assets.garr.it
|
||||
|
||||
@ -159,6 +159,14 @@ edgedl.me.gvt3.com
|
||||
edgedl.me.gvt4.com
|
||||
edgedl.me.gvt5.com
|
||||
|
||||
# >> File Pastebin / File Share
|
||||
.catbox.moe
|
||||
share.riseup.net
|
||||
.file.io
|
||||
.tmpfiles.org
|
||||
.filebin.net
|
||||
.temp.sh
|
||||
|
||||
# >> Software Download/Updating
|
||||
# 1Password
|
||||
cache.agilebits.com
|
||||
@ -188,6 +196,7 @@ dl.iina.io
|
||||
downloads.sourceforge.net
|
||||
.dl.sourceforge.net
|
||||
# Snipaste
|
||||
stats.snipaste.com
|
||||
dl.snipaste.com
|
||||
download.snipaste.com
|
||||
# Atlassian
|
||||
@ -318,5 +327,9 @@ mirror.ghproxy.com
|
||||
.releases.hashicorp.com
|
||||
# Homebrew
|
||||
formulae.brew.sh
|
||||
# GitHub
|
||||
codeload.github.com
|
||||
objects.githubusercontent.com
|
||||
pkg-containers.githubusercontent.com
|
||||
# Misc
|
||||
ciscobinary.openh264.org
|
||||
|
||||
@ -811,7 +811,6 @@ analytics.infomaniak.com
|
||||
.prtrackings.com
|
||||
p.cloudcraft.co
|
||||
collect.foresightnews.pro
|
||||
stats.snipaste.com
|
||||
.plausible.cyberciti.com
|
||||
umami.rss3.io
|
||||
.try-snowplow.com
|
||||
|
||||
@ -312,6 +312,7 @@ DOMAIN-SUFFIX,akamai.net
|
||||
DOMAIN-SUFFIX,akamaihd.net
|
||||
DOMAIN-SUFFIX,amazon.com
|
||||
DOMAIN-SUFFIX,amazon.co.jp
|
||||
DOMAIN-SUFFIX,amazonaws.com
|
||||
DOMAIN-SUFFIX,apibay.org
|
||||
DOMAIN-SUFFIX,apk-dl.com
|
||||
DOMAIN-SUFFIX,apkmirror.com
|
||||
@ -443,6 +444,7 @@ DOMAIN-SUFFIX,jirachecklist.com
|
||||
DOMAIN-SUFFIX,jkforum.net
|
||||
DOMAIN-SUFFIX,jsdelivr.com
|
||||
DOMAIN-SUFFIX,jsdelivr.net
|
||||
DOMAIN-SUFFIX,jumpdesktop.com
|
||||
DOMAIN-SUFFIX,kagi.com
|
||||
DOMAIN-SUFFIX,kakao.com
|
||||
DOMAIN-SUFFIX,kik.com
|
||||
@ -558,6 +560,7 @@ DOMAIN-SUFFIX,surfshark.com
|
||||
DOMAIN-SUFFIX,t66y.com
|
||||
DOMAIN-SUFFIX,tenor.com
|
||||
DOMAIN-SUFFIX,textnow.me
|
||||
DOMAIN-SUFFIX,termius.com
|
||||
DOMAIN-SUFFIX,tgstat.ru
|
||||
DOMAIN-SUFFIX,theinitium.com
|
||||
DOMAIN-SUFFIX,themoviedb.org
|
||||
|
||||
@ -27,41 +27,6 @@ DOMAIN,npm.im
|
||||
DOMAIN,npm.io
|
||||
# SKK.MOE
|
||||
DOMAIN,hv-monster-submit.skk.moe
|
||||
# GitHub
|
||||
DOMAIN-SUFFIX,github.io
|
||||
DOMAIN-SUFFIX,githubusercontent.com
|
||||
DOMAIN-SUFFIX,githubassets.com
|
||||
DOMAIN-SUFFIX,formulae.brew.sh
|
||||
DOMAIN-SUFFIX,ghcr.io
|
||||
# Netlify
|
||||
DOMAIN-SUFFIX,netlify.app
|
||||
# Vercel
|
||||
DOMAIN-SUFFIX,vercel.app
|
||||
# Sketch
|
||||
DOMAIN,cdn.sketch.com
|
||||
DOMAIN,resources-live.sketch.cloud
|
||||
DOMAIN,resources-cache.prod.sketch.com
|
||||
DOMAIN,prego-cache.prod.sketch.com
|
||||
# Microsoft
|
||||
DOMAIN-SUFFIX,download.prss.microsoft.com
|
||||
# VSCode
|
||||
DOMAIN,default.exp-tas.com
|
||||
DOMAIN,vscode-sync.trafficmanager.net
|
||||
DOMAIN,update.code.visualstudio.com
|
||||
# Gravatar
|
||||
DOMAIN-SUFFIX,gravatar.com
|
||||
# Misc
|
||||
DOMAIN,api.wakatime.com
|
||||
DOMAIN-SUFFIX,cloudfront.net
|
||||
DOMAIN-SUFFIX,adtidy.org
|
||||
# Rust
|
||||
DOMAIN-SUFFIX,crates.io
|
||||
# Firefox
|
||||
DOMAIN,detectportal.firefox.com
|
||||
# Safari
|
||||
DOMAIN,proxy.safebrowsing.apple
|
||||
# SetApp
|
||||
DOMAIN,store.setapp.com
|
||||
# Files
|
||||
DOMAIN-SUFFIX,catbox.moe
|
||||
DOMAIN-SUFFIX,temp.sh
|
||||
|
||||
@ -1,5 +1,8 @@
|
||||
# $ meta_title Sukka's Ruleset - Proxy
|
||||
|
||||
DOMAIN-SUFFIX,ip.sb
|
||||
DOMAIN-SUFFIX,ip-api.com
|
||||
|
||||
DOMAIN-SUFFIX,mikuclub.xyz
|
||||
DOMAIN-SUFFIX,mikuclub.cn
|
||||
DOMAIN-SUFFIX,fork.dev
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user