我去年7月6号发布了个利用Python分享订阅的,其实部署起来非常不稳定。 所以我又弄了个基于Cloudflare Workers 的,很久以前就弄好了,但是忘了有这事,今天整理Blog,来补充一下。 这个意图是使被贡献者不用天天换订阅链接,只要workers里改改就行了。 addEventListener( "fetch" , event => { event.respondWith(handleRequest(event.request)) }) async function handleRequest(request) { let { pathname } = new URL (request.url); if (pathname== "/example" ||pathname== "/example/" ) { return new Response ( "Hello worker!" , { headers: { "content-type" : "text/plain" }}) } //fast-fish if (pathname== "/archived/fast-fish/v2ray" ||pathname== "/archived/fast-fish/v2ray/" ) { return fetch( `https://bigairport.icu/api/v1/client/subscribe?token=98` ); } if (pathname== "/fast-fish/v2ray" ||pathname== "/fast-fish/v2ray/" ||pathname== "/fast-fish/ssr" ||pathname== "/fast-fish/ssr/" ) { return fetch( `https://bigairport.icu/api/v1/client/subscribe?token=98`...