您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Auto "gg" on kill in MooMoo.io
当前为
// ==UserScript== // @name MooMoo.io AutoGG // @namespace https://gf.qytechs.cn/users/1064285-vcrazy-gaming // @version 0.1 // @description Auto "gg" on kill in MooMoo.io // @match *://moomoo.io/* // @match *://*.moomoo.io/* // @author _VcrazY_ // @require https://cdn.jsdelivr.net/npm/[email protected]/dist/msgpack.min.js // @grant none // @icon https://moomoo.io/img/favicon.png?v=1 // @license MIT // ==/UserScript== // Constants const msgpack5 = window.msgpack; // Variables let ws, prevCount = 0; // Functions const toArray = (e) => (Array.isArray(e) ? e : Array.from(e)); const attachWebSocketListener = (e) => { e.addEventListener("message", hookWebSocket); }; const hookWebSocket = (e) => { let data = msgpack5.decode(new Uint8Array(e.data)); }; const sendPacket = (e) => { if (ws) { ws.send(msgpack5.encode(e)); } }; const sendChatMessage = (e) => { sendPacket(["ch", [e]]); }; // Override WebSocket's send method WebSocket.prototype.oldSend = WebSocket.prototype.send; WebSocket.prototype.send = function (e) { if (!ws) { [document.ws, ws] = [this, this]; attachWebSocketListener(this); } this.oldSend(e); }; // Mutation Observer const handleMutations = (mutationsList) => { for (const mutation of mutationsList) { if (mutation.target.id === "killCounter") { const count = parseInt(mutation.target.innerText, 10) || 0; if (count > prevCount) { sendChatMessage("gg - autoGG"); prevCount = count; } } } }; const observer = new MutationObserver(handleMutations); observer.observe(document, { subtree: true, childList: true, });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址