Auto Rejoin

Automatically attempts to rejoin if a room is full.

目前为 2022-08-11 提交的版本。查看 最新版本

// ==UserScript==
// @name         Auto Rejoin
// @namespace    https://gf.qytechs.cn/users/945115
// @version      0.1
// @license      GPL-3.0
// @description  Automatically attempts to rejoin if a room is full.
// @author       left paren
// @match        https://bonk.io/gameframe-release.html
// @run-at       document-end
// @grant        none
// ==/UserScript==

var target = document.getElementById("sm_connectingWindow_text")

var observer = new MutationObserver(function(mutations) {
    if (target.innerText.indexOf("room_full") != -1) {
        document.getElementById("roomlistjoinbutton").click()
    }
});

observer.observe(target, {
    attributes:    true,
    childList:     true,
    characterData: true
});

QingJ © 2025

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