/* * Surge 脚本:清空 XboxProductList * 功能:1. 清空数据 2. 系统弹窗 3. 网页显示纯净结果 * 触发地址:http://clear_list.com */ const key = "XboxProductList"; // 1. 执行清空 $persistentStore.write("{}", key); // 2. 控制台日志 console.log("✅ 操作成功 - 已清空 XboxProductList"); // 3. 发送系统通知 (手机顶部依然会弹窗) $notification.post("🗑️ 清单已清空", "操作成功", "XboxProductList 已重置为空对象"); // 4. 生成网页 HTML (去掉了提示文字) const html = ` Clear List

✅ 操作成功

XboxProductList 已被清空

`; // 5. 返回给浏览器 $done({ response: { status: 200, headers: { "Content-Type": "text/html;charset=utf-8" }, body: html } });