Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL

A Shadowrocket module that rewrites Google One subscription page responses to swap iOS in-app purchase IDs for promotional plan IDs.

184
55
JavaScript
1 day old

What it does

g1-acq is a Shadowrocket module paired with a JavaScript script that intercepts the response of the Google One subscription page at one.google.com/ai and replaces two monthly iOS in-app purchase IDs — the 20TB and 30TB AI Pro plans — with promotional "acq" plan IDs that exist in the same response catalog. The goal is to make the Ultra plan selection panel open the App Store checkout with the promotional offer price instead of the normal monthly price. Only the SKU strings are rewritten; whether an order actually goes through, and at what price, depends on the App Store sheet and the state of the Google One account.

Quick start

Prerequisites: Shadowrocket (小火箭) on iOS, VPN enabled, and MITM configured. The module URL is https://cdn.jsdelivr.net/gh/crhywun/g1-acq@main/g1-acq.sgmodule; the script is referenced inside the module, so no separate script entry is needed.

  1. Open Shadowrocket and keep the VPN on.
  2. Go to Settings → HTTPS 解密 (MITM), enable the master switch, generate and install the certificate, then install the Shadowrocket profile under Settings → General → VPN & Device Management and enable the root certificate trust under Settings → General → About → Certificate Trust Settings.
  3. Confirm one.google.com is in the MITM hostname list; the module appends it automatically.
  4. Open Config → Modules → +, paste the module URL above and install it.
  5. Make sure the module switch is on and reconnect once.
  6. Open the Google App (not the standalone Google One app) → avatar → Google One 管理, then in the Ultra plan panel tap “订阅此方案” on the 20TB plan; the App Store sheet should open with the discount-tier price. The 30TB plan works the same way.

The module also blocks UDP 443 to stop Google apps from using QUIC and bypassing MITM.

Verification and customisation

In Shadowrocket, go to Data → Logs → Proxy and search for g1-acq. [g1-acq] v6 loaded means the script loaded; 目录优惠档: ... lists the promotional SKUs actually present in the current response; 共改写 N 处 confirms replacements were made. If nothing appears, check the VPN, the MITM certificate/trust switch and the module toggle.

To add or remove tiers, edit the SKU_MAP and FALLBACK tables at the top of g1-acq.js. If the 90p tier is missing but its 75p fallback is in the catalog, the script uses the fallback automatically. Because the CDN caches for a few minutes, a customised script may require a manual purge of the jsDelivr URL before it takes effect on the phone.

Constraints

  • The standalone Google One app uses a native interface and is not covered; only the subscription page reached through the Google App's Google One management is rewritten.
  • Promotional SKU names are time-limited and change with Google campaigns; the mapping tables must be maintained against the catalog log.
  • The module intercepts only one.google.com/ai and writes only to local logs, but it requires an MITM root certificate on the device and trusts the repository owner to keep the script benign, since the module loads from a moving branch.
  • Blocking all UDP 443 affects HTTP/3 access speed for every app on the phone.
  • No price-field rewriting is implemented; only the SKU strings are changed.
  • The repository declares no license.

HotRepo's take

The project entered HotRepo's new list on 2026-11-22 with 100 stars gained in its first day and 28 forks in the same window, but it has no recorded GitHub daily rank. It is a narrow single-purpose module: two SKU mappings, one hostname, and a README that openly limits what the rewrite can promise. The interesting technical fact is the dependency on a catalog probe and automatic 75p fallback, which reflects how quickly promotional SKU IDs rotate. Its usefulness is bounded by the ongoing availability of those promotional tiers and by the user's willingness to install a MITM certificate — the README's trust-model section is the part worth reading before installing.

Project source and documentation

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. confeden/AntigravityLets a Google account from a blocked region use Antigravity coding tools without a VPN or region change.Rust1,029
  2. crystalmasta/unbihexA VPN client and Xray-compatible server for subscription-based proxy networks, with its own Rust core.Rust112
  3. 21stware/bowelNative macOS proxy client built on mihomo, with routes, subscriptions, TUN and a built-in MCP server.Go108
  4. 0xkaka/homeportRoute Claude, Google and Stripe through one fixed residential IP on every device while other traffic keeps using your usual proxy node.HTML254
  5. mihomo-party-org/clash-partyAn Electron GUI for the Mihomo proxy core, aimed at users who manage Clash subscriptions and rules on desktop.TypeScript27,136