adcardosi / Empty Cart

// ==UserScript==
// @name         Empty Cart
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Adds an Empty Cart button to Calypso
// @author       Alexander Cardosi
// @match        https://www.calypsoedu.com/*
// @grant        none
// @license      MIT
// ==/UserScript==

window.addEventListener("load", () => {
    if (document.querySelector(".shop_table.shop_table_responsive.cart.woocommerce-cart-form__contents tr:last-of-type td.actions")) {
        document.querySelector(".shop_table.shop_table_responsive.cart.woocommerce-cart-form__contents tr:last-of-type td.actions").style.display = "block";
    }
})