Auto-apply price protection (价格保护) on all eligible JD.com orders via Chrome Browser Relay.
Run the script:
node <skill-dir>/scripts/price-protect.js
The script will:
https://pcsitepp-fm.jd.com/ if needed{
"total": 11,
"clicked": 11,
"success": [{"name": "ANKER 140W充电线...", "amount": "6.00"}],
"failed": [{"name": "KAMAN收纳盒...", "reason": "无差价"}]
}
success array is non-empty (refunds obtained)Set up a cron job to run every ~8 hours. Example agent prompt:
> Run node . If Chrome relay is disconnected (error), skip silently. If refunds found, notify user. Otherwise update checkedAt silently.
GATEWAY_TOKEN env var or ensure ~/.openclaw/openclaw.json has gateway.auth.token.Derives the relay auth token via HMAC-SHA256(gatewayToken, "openclaw-extension-relay-v1:, connects Playwright to Chrome's CDP websocket, then uses getByText('申请价保', {exact: true}).click() to trigger each button.
共 1 个版本