Bonk.io - Map Counter

Replaces "Level Select" text with map counter.

目前为 2025-03-07 提交的版本。查看 最新版本

// ==UserScript==
// @name         Bonk.io - Map Counter
// @namespace    http://tampermonkey.net/
// @version      0.011
// @description  Replaces "Level Select" text with map counter.
// @author       Silly One +playee
// @match        https://*.bonk.io/*
// @match        https://*.bonkisback.io/*
// @grant        none
// @license      MIT
// ==/UserScript==

let mapCount = 0;
const countText = document.getElementById('maploadwindowtopbar');
countText.innerText = '69 Maps';
const topBar = document.querySelector('#maploadwindowtopbar');
const mapcont = document.getElementById('maploadwindowmapscontainer');
const observer = new MutationObserver(() => {
    const divCount = document.querySelectorAll('.maploadwindowmapdiv').length;
    mapCount = divCount;
    countText.innerText = `${mapCount} Maps`;
});
observer.observe(mapcont, { subtree: true, childList: true });

QingJ © 2025

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