A single Chrome extension combining two dev-workflow utilities for Shopify stores:
- Password Autofill — auto-fills and submits the storefront password on a password-protected dev store, and (unlike Shopify's own behavior) sends you back to the page you actually wanted instead of dumping you on the homepage.
- Cart Cleaner — one-click clearing of the current store's cart via
/cart/clear.js.
chrome://extensions→ enable Developer mode → Load unpacked → select this folder.- Click the extension icon in the toolbar. There are two tabs: Password and Cart Cleaner.
- Type your dev store's password and click Save. It's stored in
chrome.storage.local, scoped to this extension. - Visit any password-protected page on
*.myshopify.com— the form fills and submits automatically, then you're redirected to the page you were trying to reach (not the homepage).
If your store is on a custom domain instead of *.myshopify.com,
update both host_permissions and content_scripts.matches in
manifest.json to include it.
To avoid tripping Shopify's "Too many failed attempts" rate limit, the extension stops auto-submitting after 3 consecutive failed attempts with the saved password:
- A red banner appears on the page explaining it stopped, with a "Reset & retry" button.
- The popup's Password tab also shows a live
n/3 failed attemptsstatus. - Saving a new (corrected) password from the popup automatically resets the counter back to 0.
- A successful login also resets the counter to 0.
Shopify's password checkpoint doesn't preserve the page you wanted
anywhere retrievable after auth — it just always lands you on /. So:
chrome.webNavigation.onBeforeNavigatecaptures the URL you actually typed/clicked, before Shopify's redirect can drop it.- When the content script auto-submits the password form, that captured URL is locked in as the "page to return to."
- The next time that tab commits a navigation to
/, the extension knows that's Shopify's hardcoded bounce, and immediately sends the tab on to the locked-in target instead.
State lives in chrome.storage.session (not plain JS variables) so it
survives MV3 service worker restarts.
Debugging: chrome://extensions → this extension → service worker →
Inspect, then reproduce the issue and watch for [pw-autofill] log lines.
- Navigate to any Shopify store.
- Open the popup, switch to the Cart Cleaner tab.
- Confirm the detected store URL, then click Clear Cart. The tab reloads once the cart is cleared.
manifest.json— combined permissions/config for both features.background.js— password redirect-tracking logic (service worker).content.js— detects and auto-submits the password form.popup.html/popup.js— tabbed UI for both features.icon.png— extension icon.
- The password lives in
chrome.storage.local. Fine for a personal dev tool on your own machine; don't publish or share this folder with the password filled in, since anyone with popup access can reveal it via "Show password." - Cart Cleaner relies on
/cart/clear.js, a standard Shopify storefront endpoint — it only works on pages of the same Shopify domain (usesactiveTab+scripting).
MIT