Skip to content

Commit

Permalink
chore: 更新UPOS服务器列表。#135
Browse files Browse the repository at this point in the history
  • Loading branch information
msojocs committed Nov 9, 2024
1 parent d378029 commit 1fe0699
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 29 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 🌈 v1.15.2-2 / 2024-11-

## 🚀 功能

- roaming: 更新UPOS服务器列表。

# 🌈 v1.15.2-1 / 2024-11-06

## 🚀 功能
Expand Down
31 changes: 15 additions & 16 deletions extensions/area_unlimit/hook/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -714,26 +714,25 @@ const space_account_info_map = {
},
};
const uposMap = {
ks3: 'upos-sz-mirrorks3.bilivideo.com',
ks3b: 'upos-sz-mirrorks3b.bilivideo.com',
ks3c: 'upos-sz-mirrorks3c.bilivideo.com',
ks32: 'upos-sz-mirrorks32.bilivideo.com',
kodo: 'upos-sz-mirrorkodo.bilivideo.com',
kodob: 'upos-sz-mirrorkodob.bilivideo.com',
bos: 'upos-sz-mirrorbos.bilivideo.com',
cos: 'upos-sz-mirrorcos.bilivideo.com',
cosb: 'upos-sz-mirrorcosb.bilivideo.com',
bos: 'upos-sz-mirrorbos.bilivideo.com',
wcs: 'upos-sz-mirrorwcs.bilivideo.com',
wcsb: 'upos-sz-mirrorwcsb.bilivideo.com',
/** 不限CROS, 限制UA */
coso1: 'upos-sz-mirrorcoso1.bilivideo.com',
cosov: 'upos-sz-mirrorcosov.bilivideo.com',
hw: 'upos-sz-mirrorhw.bilivideo.com',
hwb: 'upos-sz-mirrorhwb.bilivideo.com',
upbda2: 'upos-sz-upcdnbda2.bilivideo.com',
upws: 'upos-sz-upcdnws.bilivideo.com',
uptx: 'upos-sz-upcdntx.bilivideo.com',
uphw: 'upos-sz-upcdnhw.bilivideo.com',
js: 'upos-tf-all-js.bilivideo.com',
hk: 'cn-hk-eq-bcache-01.bilivideo.com',
hwo1: 'upos-sz-mirrorhwo1.bilivideo.com',
hwov: 'upos-sz-mirrorhwov.bilivideo.com',
ali: 'upos-sz-mirrorali.bilivideo.com',
alib: 'upos-sz-mirroralib.bilivideo.com',
alio1: 'upos-sz-mirroralio1.bilivideo.com',
aliov: 'upos-sz-mirroraliov.bilivideo.',
'08c': 'upos-sz-mirror08c.bilivideo.com',
'08h': 'upos-sz-mirror08h.bilivideo.com',
'08ct': 'upos-sz-mirror08ct.bilivideo.com',
tf_hw: 'upos-tf-all-hw.bilivideo.com',
tf_tx: 'upos-tf-all-tx.bilivideo.com',
hk_bcache: 'cn-hk-eq-bcache-01.bilivideo.com',
akamai: 'upos-hz-mirrorakam.akamaized.net',
};
const AREA_MARK_CACHE = {}
Expand Down
82 changes: 69 additions & 13 deletions extensions/area_unlimit/hook/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ window.log = window.log ||{
trace: console.trace,
};
(() => {
log.log("[hook]: biliapp.js");
log.log("[hook]: index.js");
const HTTP_INDEX = {
get(url) {
return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -168,28 +168,84 @@ window.log = window.log ||{
label: '不替换'
},
{
value: 'ks3',
label: 'ks3(金山)'
value: "ali",
label: "ali(阿里)",
},
{
value: 'kodo',
label: 'kodo(七牛)'
value: "alib",
label: "alib(阿里)",
},
{
value: 'cos',
label: 'cos(腾讯)'
value: "alio1",
label: "alio1(阿里)",
},
{
value: 'bos',
label: 'bos(百度)'
value: "bos",
label: "bos(百度)",
},
{
value: 'wcs',
label: 'wcs(网宿)'
value: "cos",
label: "cos(腾讯)",
},
{
value: 'hw',
label: 'hw(251)'
value: "cosb",
label: "cosb(腾讯)",
},
{
value: "coso1",
label: "coso1(腾讯)",
},
{
value: "hw",
label: "hw(华为)",
},
{
value: "hwb",
label: "hwb(华为)",
},
{
value: "hwo1",
label: "hwo1(华为)",
},
{
value: "08c",
label: "08c(华为)",
},
{
value: "08h",
label: "08h(华为)",
},
{
value: "08ct",
label: "08ct(华为)",
},
{
value: "tf_hw",
label: "tf_hw(华为)",
},
{
value: "tf_tx",
label: "tf_tx(腾讯)",
},
{
value: "akamai",
label: "akamai(Akamai海外)",
},
{
value: "aliov",
label: "aliov(阿里海外)",
},
{
value: "cosov",
label: "cosov(腾讯海外)",
},
{
value: "hwov",
label: "hwov(华为海外)",
},
{
value: "hk_bcache",
label: "hk_bcache(Bilibili海外)",
},
],
uposKey: localStorage.upos || 'none',
Expand Down

0 comments on commit 1fe0699

Please sign in to comment.