mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Chore: load common random UA from latest data
This commit is contained in:
@@ -138,7 +138,7 @@ const PREDEFINE_DOMAINS = [
|
|||||||
|
|
||||||
const s = newQueue(2);
|
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(res => res.json())
|
||||||
.then((userAgents: string[]) => userAgents.filter(ua => ua.startsWith('Mozilla/5.0 ')));
|
.then((userAgents: string[]) => userAgents.filter(ua => ua.startsWith('Mozilla/5.0 ')));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user