[
  {
    "enabled": true,
    "name": "MINDO-PROXYPIN",
    "url": ".*",
    "script": "function onRequest(context, request) {\n  var host = String(request.host || '').toLowerCase();\n  if (host !== 'client.apexproxy.store') return request;\n  // Forward only real game license checks; never synthesize a background heartbeat.\n  if (/^\\/api\\.php(?:\\?|$)/.test(String(request.path || ''))) {\n    request.path = request.path.replace(/^\\/api\\.php/, '/status');\n    if (typeof request.url === 'string') {\n      request.url = request.url.replace(/^(https:\\/\\/client\\.apexproxy\\.store)\\/api\\.php(?=\\?|$)/i, '$1/status');\n    }\n  }\n  return request;\n}\nfunction onResponse(context, request, response) {\n  var host = String(request.host || '').toLowerCase();\n  if (!/(^|\\.)(freefiremobile\\.com|ggwhitehawk\\.com)$/.test(host)) return response;\n  if (String(request.path || '').indexOf('/live') !== 0 || typeof response.body !== 'string') return response;\n  try {\n    var data = JSON.parse(response.body);\n    if (typeof data.abhotupdate_cdn_url === 'string') {\n      data.abhotupdate_cdn_url = 'https://mindo.apexproxy.store/cdn?p=/';\n      response.body = JSON.stringify(data);\n      Object.keys(response.headers || {}).forEach(function(key) {\n        if (/^(content-length|content-encoding|etag)$/i.test(key)) delete response.headers[key];\n      });\n    }\n  } catch (error) {}\n  return response;\n}\n"
  }
]
