Map Counter

Counts maps and displays the count on the top left of the "Level Select" menu.

目前为 2024-08-04 提交的版本。查看 最新版本

// ==UserScript==
// @name         Map Counter
// @namespace    http://tampermonkey.net/
// @version      0.01
// @description  Counts maps and displays the count on the top left of the "Level Select" menu.
// @author       Silly One
// @match        https://*.bonk.io/*
// @match        https://*.bonkisback.io/*
// @grant        none
// @license      MIT
// ==/UserScript==

let mapCount = 0;
const countText = document.createElement('div');
countText.style.position = 'absolute';
countText.style.top = '0';
countText.style.left = '7px';
countText.style.padding = '0';
countText.style.color = 'white';
countText.innerText = 'Map Count: 0';
const topBar = document.querySelector('#maploadwindowtopbar');
if (topBar) {
    topBar.appendChild(countText);
}
setInterval(() => {
    const divCount = document.querySelectorAll('div.maploadwindowmapdiv').length;
    mapCount = divCount;
    countText.innerText = `Map Count: ${mapCount}`;
}, 1000);

QingJ © 2025

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