您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hides rooms that are full in bonk.io.
// ==UserScript== // @name Hide full rooms - bonk.io // @namespace left paren // @match https://bonk.io/gameframe-release.html // @grant none // @version 1.0 // @author left paren // @license Unlicense // @description Hides rooms that are full in bonk.io. // ==/UserScript== let hfrOldSend = XMLHttpRequest.prototype.send let hfrOldOpen = XMLHttpRequest.prototype.open XMLHttpRequest.prototype.open = function(_, url) { if (url.includes("scripts/getrooms.php")) { this.hfrIsGetRooms = true } hfrOldOpen.call(this, ...arguments) } XMLHttpRequest.prototype.send = function(data) { if (this.isGetRooms) { this.hfrOldReadyChange = this.onreadystatechange this.onreadystatechange = function () { if (this.readyState == 4) { var respJson = JSON.parse(this.response) if (respJson.rooms) { respJson.rooms = respJson.rooms.filter(room => room.players < room.maxplayers) } let newText = JSON.stringify(respJson) var newResp = () => { return newText } this.__defineGetter__("responseText", newResp) this.__defineGetter__("response", newResp) } this.hfrOldReadyChange?.call(this, ...arguments) } } hfrOldSend.call(this, ...arguments) }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址