Skip to main content

IKEA Cart Emptier

View on GitHub

IKEA Cart Emptier

What is it? #

A tiny JavaScript bookmarklet that clears your IKEA shopping cart instantly. Because clicking through IKEA’s interface to empty a cart is weirdly tedious.

You drag it into your bookmarks, then click it while on IKEA’s site. It removes everything from your cart. That’s it.

How to use #

Drag this to your bookmarks bar:

📦 Empty IKEA Cart

Then navigate to IKEA and click the bookmark while on your cart page.

Source code #

(function () {
  let i = setInterval(() => {
    let e = document.querySelector('button[aria-label*="Remove"]');
    if (e) e.click();
    else clearInterval(i);
  }, 600);
})();

Why I built it #

I was clearing my cart a lot after building a kitchen and got tired of the clicks. JavaScript bookmarklets are this weird, underrated browser feature, so I made one to solve a real annoyance.

Current status #

Works great, at least last time I checked.