您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Play a sound if Oculus Rift S is in stock
// ==UserScript== // @name WalmartOculusRiftS(OOS) // @namespace WalmartOculusRiftS(OOS) // @description Play a sound if Oculus Rift S is in stock // @version 2 // @include https://www.walmart.com/ip/Oculus-Rift-S-PC-Powered-VR-Gaming-Headset/231668381* // @author Xavier // ==/UserScript== //LOAD LEAVE THE BROWSER ON THIS PAGE: https://www.walmart.com/ip/Oculus-Rift-S-PC-Powered-VR-Gaming-Headset/231668381 var player = document.createElement('audio'); player.src = 'https://notificationsounds.com/soundfiles/b5b41fac0361d157d9673ecb926af5ae/file-sounds-727-good-morning.mp3'; player.preload = 'auto'; if (!(/Technical difficulties/i.test (document.body.innerHTML) )) { if (!(/font-bold">Out of stock/i.test (document.body.innerHTML) )) { document.title = "MATCH"; player.play() } else { setTimeout(function(){ location.reload(); }, 5*1000); } } else { setTimeout(function(){ location.reload(); }, 5*1000); }