AmazonSwitch (X)

Play a sound if Switch is in stock

Versione datata 29/04/2020. Vedi la nuova versione l'ultima versione.

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

You will need to install an extension such as Tampermonkey to install this 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        AmazonSwitch (X)
// @namespace   AmazonSwitch (X)
// @description Play a sound if Switch is in stock
// @version     7
// @include 	https://www.amazon.com/gp/offer-listing/B07VJRZ62R/ref=olp_twister_child?ie=UTF8&m=ATVPDKIKX0DER&mv_color_name=0&mv_style_name=0*
// @include     https://www.amazon.com/gp/offer-listing/B07VJRZ62R/ref=olp_twister_child?ie=UTF8&m=ATVPDKIKX0DER&mv_color_name=0&mv_style_name=0*
// @include     https://www.amazon.com/gp/offer-listing/B07YZQSC5Y/ref=olp_twister_child?ie=UTF8&m=ATVPDKIKX0DER&mv_edition=0&mv_platform_for_display=0*
// @incldue     https://www.amazon.com/gp/offer-listing/B07VGRJDFY/ref=olp_twister_child?ie=UTF8&m=ATVPDKIKX0DER&mv_color_name=1&mv_style_name=0*
// @author      Xavier

// ==/UserScript==

//LOAD LEAVE THE BROWSER ON THIS PAGE: https://www.amazon.com/gp/offer-listing/B07XV4NHHN/

var player = document.createElement('audio');
player.src = 'https://notificationsounds.com/soundfiles/44f683a84163b3523afe57c2e008bc8c/file-22_v-2-single.mp3';
player.preload = 'auto';

if (/\$299.99/i.test (document.body.innerHTML) )
{
  document.title = "MATCH";
  player.play()
}
else {
setTimeout(function(){ location.reload(); }, 2*1000);
}