This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Giithub @BlueSkyXN | |
| // Code https://gist.github.com/BlueSkyXN/cf009388660348915be2166f6080e02d | |
| // 仅供学习CloudFlare Worker开发使用,违规使用后果自负 | |
| // License @GPLv3 | |
| // 目前该地址经过实验不需要认证,不需要UA、Cookie、Content-Type、Authorization: Bearer等信息,直接上传都行 | |
| // 思路来源 https://tencentsb.xyz/md/ 和出处(需要登录或者用谷歌爬虫UA/快照访问) https://jike.info/topic/22192/ | |
| // 参考资料 https://www.freebuf.com/articles/system/227532.html | |
| // 参考资料 https://github.com/yuolvv/Poor_image_upload | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Github @BlueSkyXN | |
| // Code https://gist.github.com/BlueSkyXN/0be89e736cd2fe0418f77c034538c502 | |
| // 仅供学习CloudFlare Worker开发使用,违规使用后果自负 | |
| // License @GPLv3 | |
| // 记得修改98行左右的域名/URL为你的Worker的API节点,注意58图床会删图,只能临时、短期学习使用 | |
| addEventListener('fetch', event => { | |
| event.respondWith(handleRequest(event.request)) | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Website you intended to retrieve for users. | |
| const upstream = 'api.openai.com' | |
| // Custom pathname for the upstream website. | |
| const upstream_path = '/' | |
| // Website you intended to retrieve for users using mobile devices. | |
| const upstream_mobile = upstream | |
| // Countries and regions where you wish to suspend your service. |