您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Оповещение о новых сообщениях чата
当前为
// ==UserScript== // @name hwm_chat_informer // @namespace https://gf.qytechs.cn/ru/users/170936 // @description Оповещение о новых сообщениях чата // @author Kleshnerukij // @version 1.0.0 // @include https://www.heroeswm.ru/chat2020.php // @include https://www.lordswm.com/chat2020.php // @include http://178.248.235.15/chat2020.php // ==/UserScript== (function() { var aud = new Audio(); aud.preload = 'auto'; aud.src = 'https://sound-pack.net/download/Sound_17211.mp3'; var msg_container = document.getElementById("chat_messages_container"); var last_child = msg_container.lastChild; var last_id = last_child.id; var new_child; var new_id = last_id; var name_author = ''; var your_name = 'Клешнерукий'; setInterval(function () { new_child = msg_container.lastChild; new_id = new_child.id; if (document.getElementById(new_id).getElementsByClassName("chat_name")[0] !== undefined) { name_author = document.getElementById(new_id).getElementsByClassName("chat_name")[0].innerHTML; } if (new_id > last_id && name_author !== your_name) { aud.play(); last_id = new_id; } }, 1000); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址