Chore: load common random UA from latest data

This commit is contained in:
SukkaW 2025-01-02 23:54:18 +08:00
parent 680079c55a
commit 7b55529829

View File

@ -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 ')));