minus

Search a store

Type a store name to open its code page.

Extension mock

Two surfaces. Four states. Sample data.

A toolbar popup that answers whether Minus is doing anything on this page, and a checkout overlay that tries codes where you can see them.

The mock below runs in this page. The real extension is in the repository and loads unpacked in Chrome, where it runs the whole spine across the sample store's product page, cart, and checkout. Both use sample merchants and sample codes. Nothing talks to a live store.

The spine

Four stops. Nothing opens on its own except the test bar you activated.

Chip, Activate, test bar, then a tell or a receipt line.

  1. 01

    Product page

    A quiet chip.

    A pill in the corner that says how many codes are on file. It opens only if you click it. No full-screen overlay, no panel that appears on its own.

  2. 02

    Cart

    Activate, gated.

    The chip carries one button. Press Activate and a panel confirms that codes will be tried at checkout. Until you press it, nothing opens and nothing runs.

  3. 03

    Checkout

    The test bar.

    If you activated, it starts on its own. If not, the chip carries Apply. Either way you watch each code go into the store's own box, and the store's total moves on a hit.

  4. 04

    After

    A tell, or a receipt line.

    A hit reads as the code and the dollars, with the commission stated in words. A miss reads as a receipt line: codes tried, zero worked, no commission claimed, no links changed.

Checkout, in the page

Press Play to run the sequence, or jump to a state.

Apply chip, test bar, success tell, miss receipt line.

State
https://northwind.example/checkout
Minus toolbar icon
Northwind OutfittersSecure checkout
6 codes on file

Behavior

What the extension refuses to do, in its own interface.

  1. 01

    It never moves you anywhere.

    The extension does not navigate, open windows, or touch a link on the page. Attribution is a word in the overlay and a field in the ledger. There is no silent swap and no hidden click-out.

  2. 02

    Every attempt is visible.

    You watch each code go in and each result come back. The merchant's own total moves on the page. There is no spinner that resolves to a number you cannot check.

  3. 03

    The miss is a receipt line, not a shrug.

    When nothing works the overlay prints codes tried, zero worked, no commission claimed, then offers what might actually help at that store. It never shows a fake win to look useful.

  4. 04

    The ledger gets a line either way.

    A win is written as merchant, code, date, dollars, attribution disclosed. A miss is written as a miss with attribution none. Both show up, because a ledger that only records wins is marketing.

Load it in Chrome

Manifest V3. Runs only on the sample merchants.

The real extension, unpacked, in four steps.

  1. 01

    Build the extension.

    From the repository root. This writes the unpacked extension to extension/dist.

    npm install && npm run build
  2. 02

    Turn on Developer mode.

    Open the extensions page in Chrome and use the switch in the top right.

    chrome://extensions
  3. 03

    Load unpacked.

    Click Load unpacked and choose this folder inside the repository.

    extension/dist
  4. 04

    Open a sample checkout.

    The extension runs only on the sample merchants served by this site, so start the dev server and pin Minus in the toolbar.

    http://localhost:5340/demo/checkout/northwind-outfitters

The manifest matches only localhost:5340/demo/*. It cannot run on, or read, any other site. Two paths to try: a checkout where a code works, and one where nothing does.

Sample merchants to run it on

What the extension contains: a content script that mounts the overlay when a code box appears, a popup that reads the page, a ledger page backed by chrome.storage.local, and a service worker that keeps the ledger and the badge. Source is in extension/src.

Install

This is the whole extension. There is no second screen.

We earn a commission when a code we applied is used. It costs you nothing extra. The account behind the popup is at /account.