Skip to content

garnetred/hide-amazon-cart

Repository files navigation

Hide Amazon Cart

"Buy Me A Coffee"

Chrome Web Store

This extension is now publicly available via the Chrome Web Store.

Abstract

This browser extension hides the Amazon cart sidebar that appears on the right-hand side if a user has at least one item in the cart. Normally, you would see this sidebar on the /cart route and when viewing other Amazon items. With this extension the cart is hidden, but you can still view your cart by visiting amazon.<top-level domain>/cart.

The following domains are currently supported:

  • amazon.co.uk
  • amazon.it
  • amazon.co.jp
  • amazon.nl
  • amazon.sa
  • amazon.com.mx
  • amazon.com.au
  • amazon.in
  • amazon.de
  • amazon.es
  • amazon.fr
  • amazon.ca
  • amazon.com

Tech Stack

This project uses vanilla JS, CSS, and HTML.

Setup/Installation

You can clone the repo locally using git clone.

Chrome (and other Chromium-based browsers)

This article offers detailed instructions on loading an unpacked chrome extension. You can navigate to the chrome extensions page via the puzzle piece icon in the toolbar. From there, you can click "load unpacked extension" and choose the folder via the popup. You should then see the yellow cart icon appear in the toolbar.

When you click on the icon, you should see "Hide Amazon Cart." If you navigate to Amazon and add an item to your cart, you should not see the sidebar in the amazon.com/cart page or on other Amazon item pages.

Firefox

You can navigate to about:addons and select the gear icon. From there, you can install the extension from a file and select the .xpi file in the web-ext-artifacts folder. There may be a popup asking about browser tab permissions, and you can click yes or accept. Then if you go to amazon.com, you should see the extension requesting access to the page, which you can enable.

After this, when you add items to your cart you shouldn't see the sidebar. There's currently a bug where the sidebar flickers and then disappears.

Preview

Amazon Item Page HideAmazonCart

Next Steps

I hope to update this extension shortly to support a few more of the Amazon top-level domains.