diff --git a/SkinraveRainNotifier.user.js b/SkinraveRainNotifier.user.js index 9d93077..076f578 100644 --- a/SkinraveRainNotifier.user.js +++ b/SkinraveRainNotifier.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Skinrave Rain Notifier // @namespace https://pube.tk -// @version 2025-03-05 +// @version 2025-06-03 // @description Notifies the user of joinable rains via sound and favicon cues // @author Abhorrent_Anger // @match https://skinrave.gg/* @@ -15,8 +15,8 @@ const RECHECK_TIMER = 5000; const INITIAL_TIMER = 2000; const MAIN_WINDOW_SELECTOR = "div.flex.overflow-y-auto.overflow-x-hidden"; -const RAIN_BUTTON_SELECTOR = 'body > div.flex.overflow-y-auto.overflow-x-hidden > div.z-30.fixed.bg-object-bg.border-l.border-gray-90.right-0 > div > div.flex.flex-wrap.gap-2.relative > div.mt-3.w-full.rounded > div > button.relative.z-10.inline-flex.items-center.justify-center.rounded > span'; -const RAIN_AMOUNT_SELECTOR = 'body > div.flex.overflow-y-auto.overflow-x-hidden > div.z-30.fixed.bg-object-bg.border-l.border-gray-90.right-0 > div > div.flex.flex-wrap.gap-2.relative > div > div > span > span > span > span'; +const RAIN_BUTTON_SELECTOR = 'div.mt-3.w-full.rounded button.relative.z-10.inline-flex.items-center.justify-center.rounded > span'; +const RAIN_AMOUNT_SELECTOR = 'span[data-testid="rain-pot"] > span'; var player = document.createElement('audio'); player.src = 'https://cdn.pixabay.com/download/audio/2022/03/15/audio_05a708055d.mp3?filename=water-drop-85731.mp3';