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
Chip, Activate, test bar, then a tell or a receipt line.
- 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.
- 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.
- 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.
- 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
Apply chip, test bar, success tell, miss receipt line.
Contact
Shipping address
Payment
Toolbar popup
One question, answered at real size.
northwind.example
6 codes on file for Northwind Outfitters.
The last one worked 3h ago. We will try them when you reach a checkout with a code box. Until then, nothing runs.
This month
−$29.601 order
northwind.example/checkout
You are at checkout. 6 codes ready.
The last one worked 3h ago. We try them one at a time and keep the best.
We earn a commission if one works. It costs you nothing extra.
This month
−$29.601 order
news.example
Not a store we know.
Nothing to do here, so nothing is read from this page.
This month
−$29.601 order
Behavior
What the extension refuses to do, in its own interface.
- 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.
- 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.
- 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.
- 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
The real extension, unpacked, in four steps.
- 01
Build the extension.
From the repository root. This writes the unpacked extension to extension/dist.
npm install && npm run build - 02
Turn on Developer mode.
Open the extensions page in Chrome and use the switch in the top right.
chrome://extensions - 03
Load unpacked.
Click Load unpacked and choose this folder inside the repository.
extension/dist - 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
Brindle Pet Supply
2 of 4 codes apply
Copperpot
1 of 3 codes apply
Ferrule
1 of 2 codes apply
Halcyon Audio
2 of 4 codes apply
Kettle & Co
2 of 4 codes apply
Loom
2 of 3 codes apply
Marrow Home
nothing applies, the miss path
Meridian Eyewear
1 of 3 codes apply
Northwind Outfitters
2 of 6 codes apply
Orbit Bikes
1 of 3 codes apply
Pilot Roasters
2 of 3 codes apply
Sable
1 of 3 codes apply
Slate Sleep
2 of 3 codes apply
Tidewater Swim
nothing applies, the miss path
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.