Notify Destiny Message

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

作者
Walamo
日安装量
0
总安装量
0
评分
0 0 0
版本
1.0
创建于
2025-01-28
更新于
2025-01-28
大小
3.9 KB
许可证
MIT
适用于

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

QingJ © 2025

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