AmazonSwitch (X)

Play a sound if Switch is in stock

目前为 2020-04-29 提交的版本。查看 最新版本

// ==UserScript==
// @name        AmazonSwitch (X)
// @namespace   AmazonSwitch (X)
// @description Play a sound if Switch is in stock
// @version     4
// @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/?m=ATVPDKIKX0DER&ie=UTF8&tag=zoolertcom-20&fbclid=IwAR2vuZds93C30V9pGMECHDUbZvHMvlmkLt7g9mR8h8CEp3uH084ZJvsAUzI*
// @include     https://www.amazon.com/gp/offer-listing/B07YMR6NB8/ref=as_li_ss_tl?ie=UTF8&m=ATVPDKIKX0DER&mv_color_name=1&mv_style_name=2&linkCode=ll2&tag=switchlists-20&linkId=115dfebe66d618d3cc20530b12d69f5c&language=en_US*
// @include     https://www.amazon.com/gp/offer-listing/B07XLGBYM3/ref=as_li_ss_tl?ie=UTF8&mv_color_name=all&mv_style_name=1&linkCode=ll2&tag=switchlists-20&linkId=a2d888c23f65a396b30c3162129dad44&language=en_US
// @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);
}

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址