Skip to content

Instantly share code, notes, and snippets.

@spxload
spxload / ai-region-switch.js
Last active May 21, 2026 22:07
ai-region-switch.js
/* =====================================================================
* AI Region Switch для Loon 3.3.9 — v4.0 (2026-05-21)
*
* НОВОЕ в v4.0:
* - ЭТАП 2: активная верификация каждого AI реальным запросом к API.
* Ловит случаи "страна разрешена, но IP в blacklist у AI".
* - BLACKLIST: ручные исключения per-сервис.
* - Двухрежимный прогон: quick (только cdn-cgi/trace) vs full (с verify).
*
* ===================================================================== */
{
"id": "AIRegionSwitch",
"name": "AI Region Switch",
"version": "3.0",
"author": "@spxload",
"repo": "https://gist.github.com/spxload/3ea0137f1dc7001b8f4746d2e718d2e2",
"icons": [
"https://cdn.jsdelivr.net/gh/Orz-3/mini@master/Color/AI.png",
"https://cdn.jsdelivr.net/gh/Orz-3/mini@master/Color/AI.png"
],