diff --git a/script_library/index.json b/script_library/index.json index d9c7e16..36bcf32 100644 --- a/script_library/index.json +++ b/script_library/index.json @@ -1,7 +1,7 @@ { "format_version": 1, - "data_version": 85, - "updated": "2026-04-07T16:37:23Z", + "data_version": 86, + "updated": "2026-04-08T22:09:17.767Z", "announcement": null, "categories": [ { @@ -1421,6 +1421,29 @@ "updated": null, "status": "active", "lines": 29 + }, + { + "id": "vpn_mnqlott7", + "name": "vpn", + "name_en": "vpn", + "desc": "Proxy", + "desc_en": "Proxy", + "category": "ui", + "file": "scripts/ui/vpn_mnqlott7.py", + "thumbnail": null, + "version": 1, + "file_type": "py", + "author": "Viển", + "author_en": "Viển", + "tags": [ + "community" + ], + "requires": [], + "min_app_version": "1.5.0", + "added": "2026-04-08", + "updated": null, + "status": "active", + "lines": 18 } ] } diff --git a/script_library/scripts/ui/vpn_mnqlott7.py b/script_library/scripts/ui/vpn_mnqlott7.py new file mode 100644 index 0000000..52874f0 --- /dev/null +++ b/script_library/scripts/ui/vpn_mnqlott7.py @@ -0,0 +1,18 @@ +import requests +import base64 +from urllib.parse import quote + +def fetch_and_generate_vmess(): + data = requests.get("https://fastconn.github.io/v/servers.json").json() + + u = data["cfgs"]["vmess"]["a"]["u"] + pt = data["cfgs"]["vmess"]["a"]["pt"] + + for item in data["l"]: + for server in item.get("servers", []) + item.get("vip-bak", []): + if server.get("ip") and server.get("city"): + vmess_b64 = base64.b64encode(f"auto:{u}@{server['ip']}:{pt}".encode()).decode() + print(f"vmess://{vmess_b64}?remarks={quote(server['city'])}&allowInsecure=1&alterId=1") + +if __name__ == "__main__": + fetch_and_generate_vmess() \ No newline at end of file