Notify Destiny Message

Plays a sound or notifies when a div with data-username="destiny" is created

28.01.2025 itibariyledir. En son verisyonu görün.

Yazar
Walamo
Değerlendirmeler
0 0 0
Versiyon
1.0
Oluşturulma
28.01.2025
Güncellenme
28.01.2025
Size
3,95 KB
Lisans
MIT
Geçerli

--------------------
Features
--------------------
Customizable User Monitoring
You can specify the usernames to monitor by editing the usernamesToMonitor array.

Browser Notifications
The script sends desktop notifications whenever a monitored user posts a new message. Notifications include:

The username of the sender.
The message content.
An optional icon.
Case-Insensitive Matching
The script converts usernames to lowercase to ensure case-insensitive comparison.

Real-Time Monitoring
Uses a MutationObserver to detect new messages as soon as they appear in the chat.

-------------------
Configure Usernames
-------------------
Locate the line:
const usernamesToMonitor = ['destiny', 'EXAMPLEUSERNAME2','EXAMPLEUSERNAME'];

Replace 'EXAMPLEUSERNAME2', 'EXAMPLEUSERNAME' with the usernames you wish to monitor. For example:
const usernamesToMonitor = ['destiny', 'streamer123', 'moderator456'];

Open Destiny.gg in your browser.
The first time the script runs, it may prompt you to allow notifications. Grant the necessary permission.