Check the card

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

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==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