mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-13 17:50:34 +08:00
Chore: load common random UA from latest data
This commit is contained in:
parent
680079c55a
commit
7b55529829
@ -138,7 +138,7 @@ const PREDEFINE_DOMAINS = [
|
||||
|
||||
const s = newQueue(2);
|
||||
|
||||
const latestTopUserAgentsPromise = $fetch('https://cdn.jsdelivr.net/npm/top-user-agents@latest/src/desktop.json')
|
||||
const latestTopUserAgentsPromise = $fetch('https://raw.githubusercontent.com/microlinkhq/top-user-agents/master/src/desktop.json')
|
||||
.then(res => res.json())
|
||||
.then((userAgents: string[]) => userAgents.filter(ua => ua.startsWith('Mozilla/5.0 ')));
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user