Skip "Need anything else?" page

Skip the "Need anything else?" page by changing the cart proceed button destination

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name           Skip "Need anything else?" page
// @name:ja        「他に何か必要ですか?」画面をスキップ
// @namespace      https://github.com/zknx
// @icon           https://www.amazon.com/favicon.ico
// @version        1.2
// @description    Skip the "Need anything else?" page by changing the cart proceed button destination
// @description:ja カート画面上のボタンの遷移先を変えることで「他に何か必要ですか?」画面をスキップ
// @author         zknx
// @match          https://www.amazon.*/gp/cart*
// @match          https://www.amazon.*/cart*
// ==/UserScript==

document.addEventListener('click', e => {
    const target = e.target;
    if (target.name === 'proceedToRetailCheckout') {
        e.preventDefault();
        window.location.href = '/checkout/entry/cart';
    }
});