请给我罐可乐 (@melos)适用于 Sub-Store 的 WebShare 节点生成脚本 中发帖

只需要在新建或已有的订阅中,添加“节点操作“ → “脚本操作”,复制下方代码后修改 API Key 即可(在此处申请)。 

添加路径及效果展示
async function operator(proxies = []) {
try {
// 获取 WebShare API 的 Socks 数据
const response = await fetch("https://proxy.webshare.io/api/v2/proxy/list/?mode=direct&page=1&page_size=25", {
headers: {
"Authorization": "Token *** (你的 WebShare API Key)",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; ...