Check the card

Adds a warning to amazon and ebay to check card before checking out

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         Check the card
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Adds a warning to amazon and ebay to check card before checking out
// @author       You
// @match        https://www.amazon.co.uk/gp/buy/*
// @match        https://mbuy.ebay.co.uk/xo*
// @grant        none
// ==/UserScript==

function addThis(id){
    var div = document.getElementById(id);
    if(div){
        div.innerHTML = '<p style="color: red; font-size: 50px; line-height: 50px"><b>CHECK THE DAMN CARD FIRST</b></p>' + div.innerHTML;
        div.style.backgroundColor = 'yellow';
    }
}

// Add more elements here for other websites
addThis('subtotals'); // amazon
addThis('order-summary-box'); //amazon
addThis('call-to-action'); //ebay