OneTodo.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*******************************
  2. 脚本名称: OneTodo - Personal——解锁订阅
  3. 下载地址:https://is.gd/R43DLC
  4. 软件版本:1.3.4
  5. 脚本作者:彭于晏💞
  6. 更新时间:2023-8-22
  7. 问题反馈:QQ+89996462
  8. QQ会员群:779392027💞
  9. TG反馈群:https://t.me/plus8889
  10. TG频道群:https://t.me/py996
  11. 使用声明:⚠️此脚本仅供学习与交流,请勿转载与贩卖!⚠️⚠️⚠️
  12. 更多资源请微信搜索小程序【屌丝博客】
  13. *******************************
  14. [rewrite_local]
  15. ^https?:\/\/api\.revenuecat\.com\/.+\/(receipts$|subscribers\/?(.*?)*$) url script-response-body https://git.jojo21.top/shawenguan/Quantumult-X/raw/master/Scripts/others/OneTodo.js
  16. [mitm]
  17. hostname = api.revenuecat.com
  18. *************************************/
  19. const pyy = {};
  20. const pyy2 = JSON.parse(typeof $response != "undefined" && $response.body || null);
  21. const name = "pro";
  22. const appid = "pyy_lifetime";
  23. if (typeof $response == "undefined") {
  24. delete $request.headers["x-revenuecat-etag"];
  25. delete $request.headers["X-RevenueCat-ETag"];
  26. pyy.headers = $request.headers;
  27. } else if (pyy2 && pyy2.subscriber) {
  28. data = {
  29. "Author": "彭于晏",
  30. "Telegram" : "https://t.me/plus8889",
  31. "warning": "仅供学习,禁止转载或售卖",
  32. "original_purchase_date": "2022-11-11T00:00:00Z",
  33. "purchase_date": "2022-11-11T00:00:00Z",
  34. "store" : "app_store",
  35. "ownership_type": "PURCHASED"
  36. };
  37. pyy2.subscriber.subscriptions[(appid)] = data
  38. pyy2.subscriber.entitlements[(name)] = JSON.parse(JSON.stringify(data));
  39. pyy2.subscriber.entitlements[(name)].product_identifier = (appid);
  40. pyy.body = JSON.stringify(pyy2);
  41. }
  42. $done(pyy);