/* Currency:https://apps.apple.com/app/id284220417 [rewrite_local] ^https?:\/\/api\.revenuecat\.com\/v1\/(subscribers\/[^\/]+$|receipts$) url script-response-body https://raw.githubusercontent.com/Guding88/Script/main/Currency.js ^https?:\/\/api\.revenuecat\.com\/v1\/(subscribers\/[^\/]+$|receipts$) url script-request-header https://raw.githubusercontent.com/Guding88/Script/main/Currency.js [MITM] hostname = api.revenuecat.com */ const guding = {}; const guding6 = JSON.parse(typeof $response != "undefined" && $response.body || null); if (typeof $response == "undefined") { delete $request.headers["x-revenuecat-etag"]; delete $request.headers["X-RevenueCat-ETag"]; guding.headers = $request.headers; } else if (guding6 && guding6.subscriber) { guding6.subscriber.subscriptions = guding6.subscriber.subscriptions || {}; guding6.subscriber.entitlement = guding6.subscriber.entitlement || {}; const app = 'gd';const list = {'gd':{name: 'plus', id: 'com.jeffreygrossman.currencyapp.iap.plus'}}; const data = { "expires_date": "6666-06-06T06:06:06Z", "original_purchase_date": "2023-02-23T02:33:33Z", "purchase_date": "2023-02-23T02:33:33Z", "ownership_type" : "PURCHASED", "store" : "app_store"}; for (const i in list) { if (new RegExp(`^${i}`, `i`).test(app)) { guding6.subscriber.subscriptions[list[i].id] = data; guding6.subscriber.entitlements[list[i].name] = JSON.parse(JSON.stringify(data)); guding6.subscriber.entitlements[list[i].name].product_identifier = list[i].id; break; } } guding.body = JSON.stringify(guding6); } $done(guding);