NewEggOculusQuest(RIFT Alert)

Play a sound if Oculus Rift S is in stock

  1. // ==UserScript==
  2. // @name NewEggOculusQuest(RIFT Alert)
  3. // @namespace NewEggOculusQuest(RIFT Alert)
  4. // @description Play a sound if Oculus Rift S is in stock
  5. // @version 1
  6. // @include https://www.newegg.com/oculus-rift-s-head-mounted-display/p/N82E16826910011*
  7. // @include https://www.newegg.com/oculus-quest-head-mounted-display/p/N82E16826910013*
  8. // @include https://www.newegg.com/oculus-quest-head-mounted-display/p/N82E16826910012*
  9. // @author Xavier
  10.  
  11. // ==/UserScript==
  12.  
  13. //LOAD LEAVE THE BROWSER ON THIS PAGE: https://www.bestbuy.com/site/oculus-rift-s-pc-powered-vr-gaming-headset-black/6343150.p?skuId=6343150
  14.  
  15. var player = document.createElement('audio');
  16. player.src = 'https://notificationsounds.com/soundfiles/b5b41fac0361d157d9673ecb926af5ae/file-sounds-727-good-morning.mp3';
  17. player.preload = 'auto';
  18.  
  19. if (((/Option:Oculus Rift S/i.test (document.body.innerHTML)) || (/Option:Rift S/i.test (document.body.innerHTML)) || (/Option:Oculus Rift/i.test (document.body.innerHTML)) || (/Option:Rift/i.test (document.body.innerHTML))) )
  20. {
  21. document.title = "RIFT MATCH";
  22. player.play()
  23. }
  24. else {
  25. setTimeout(function(){ location.reload(); }, 5*1000);
  26. }

QingJ © 2025

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