mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-10-25 17:22:27 +08:00
A provider link that carries a usage script now enables usage query unless it says `usageEnabled=false`. Site owners attach the script so users see their balance; making them switch it on again after import was an extra step with little safety benefit: the script runs in the QuickJS sandbox, sends a single request, and deep-link scripts have no template type, so that request must be same-origin HTTPS with the base URL. Links without a script still import usage fields disabled. The confirmation badge follows the same rule as the backend, and the script body is still shown in full before the user imports.