mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 02:39:01 +08:00
修复国旗优先级问题
This commit is contained in:
parent
33ae67ab60
commit
317e3fc724
@ -2233,7 +2233,6 @@ function ScriptFilter(script) {
|
|||||||
function getFlag(name) {
|
function getFlag(name) {
|
||||||
// flags from @KOP-XIAO: https://github.com/KOP-XIAO/QuantumultX/blob/master/Scripts/resource-parser.js
|
// flags from @KOP-XIAO: https://github.com/KOP-XIAO/QuantumultX/blob/master/Scripts/resource-parser.js
|
||||||
const flags = {
|
const flags = {
|
||||||
"🏳️🌈": ["流量", "时间", "应急", "过期", "Bandwidth", "expire"],
|
|
||||||
"🇦🇨": ["AC"],
|
"🇦🇨": ["AC"],
|
||||||
"🇦🇹": ["奥地利", "维也纳"],
|
"🇦🇹": ["奥地利", "维也纳"],
|
||||||
"🇦🇺": ["AU", "Australia", "Sydney", "澳大利亚", "澳洲", "墨尔本", "悉尼"],
|
"🇦🇺": ["AU", "Australia", "Sydney", "澳大利亚", "澳洲", "墨尔本", "悉尼"],
|
||||||
@ -2398,6 +2397,7 @@ function getFlag(name) {
|
|||||||
"镇江",
|
"镇江",
|
||||||
"back",
|
"back",
|
||||||
],
|
],
|
||||||
|
"🏳️🌈": ["流量", "时间", "应急", "过期", "Bandwidth", "expire"],
|
||||||
};
|
};
|
||||||
for (let k of Object.keys(flags)) {
|
for (let k of Object.keys(flags)) {
|
||||||
if (flags[k].some((item) => name.indexOf(item) !== -1)) {
|
if (flags[k].some((item) => name.indexOf(item) !== -1)) {
|
||||||
@ -2481,6 +2481,7 @@ function getPlatformFromHeaders(headers) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
console.log("User Agent: \n" + UA);
|
||||||
if (UA.indexOf("Quantumult%20X") !== -1) {
|
if (UA.indexOf("Quantumult%20X") !== -1) {
|
||||||
return "QX";
|
return "QX";
|
||||||
} else if (UA.indexOf("Surge") !== -1) {
|
} else if (UA.indexOf("Surge") !== -1) {
|
||||||
|
2
backend/sub-store.min.js
vendored
2
backend/sub-store.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user