您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Makes sound notification once the new chat message came!
// ==UserScript== // @name OGame NCM Notifier // @namespace http://tampermonkey.net/ // @version 0.2 // @description Makes sound notification once the new chat message came! // @author Alexander Bulgakov // @match *.ogame.gameforge.com/game/index.php?page=* // @icon https://www.google.com/s2/favicons?sz=64&domain=gameforge.com // @grant none // ==/UserScript== const nSound = document.createElement('audio') nSound.src = 'https://zvukipro.com/uploads/files/2018-12/1543852602_plyus_org-z_uk-u_edomleniya-4.mp3' nSound.volume = 0.5 setInterval(() => { let digitIndicator = document.querySelector('span.new_msg_count.totalChatMessages') if (localStorage.getItem('msgCount') == null) localStorage.setItem('msgCount', '0') else if (localStorage.getItem('msgCount') != digitIndicator.textContent.replace(/\s/g, '')) { localStorage.setItem('msgCount', digitIndicator.textContent.replace(/\s/g, '')) if (localStorage.getItem('msgCount') != '0') nSound.play() } }, 500)
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址