Rain button selector change
This commit is contained in:
parent
6290e2309e
commit
133809d46c
@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Skinrave Rain Notifier
|
// @name Skinrave Rain Notifier
|
||||||
// @namespace https://pube.tk
|
// @namespace https://pube.tk
|
||||||
// @version 2025-03-05
|
// @version 2025-06-03
|
||||||
// @description Notifies the user of joinable rains via sound and favicon cues
|
// @description Notifies the user of joinable rains via sound and favicon cues
|
||||||
// @author Abhorrent_Anger
|
// @author Abhorrent_Anger
|
||||||
// @match https://skinrave.gg/*
|
// @match https://skinrave.gg/*
|
||||||
@ -15,8 +15,8 @@
|
|||||||
const RECHECK_TIMER = 5000;
|
const RECHECK_TIMER = 5000;
|
||||||
const INITIAL_TIMER = 2000;
|
const INITIAL_TIMER = 2000;
|
||||||
const MAIN_WINDOW_SELECTOR = "div.flex.overflow-y-auto.overflow-x-hidden";
|
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_BUTTON_SELECTOR = 'div.mt-3.w-full.rounded 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_AMOUNT_SELECTOR = 'span[data-testid="rain-pot"] > span';
|
||||||
|
|
||||||
var player = document.createElement('audio');
|
var player = document.createElement('audio');
|
||||||
player.src = 'https://cdn.pixabay.com/download/audio/2022/03/15/audio_05a708055d.mp3?filename=water-drop-85731.mp3';
|
player.src = 'https://cdn.pixabay.com/download/audio/2022/03/15/audio_05a708055d.mp3?filename=water-drop-85731.mp3';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user