Notify Destiny Message

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

Author
Walamo
Daily installs
0
Total installs
0
Ratings
0 0 0
Version
1.0
Created
2025-01-28
Updated
2025-01-28
Size
3.95 KB
License
MIT
Applies to

--------------------
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.