Bonk.io Room hide function

Adds epic room hider

01.08.2024 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Bonk.io Room hide function
// @namespace    http://tampermonkey.net/
// @version      69.000420
// @description  Adds epic room hider
// @author       Silly One
// @license      MIT
// @match        https://*.bonk.io/*
// @match        https://*.bonkisback.io/*
// @match        https://*.multiplayer.gg/*
// @grant        none
// ==/UserScript==

function filterRooms(s) {
    s = s.toLowerCase();
    let matches = el => el.children[0].textContent.toLowerCase().includes(s);
    $('#roomlisttable tr').each((i, el) => {
        if (s === "") {
            el.hidden = false;
        } else {
            el.hidden = matches(el);
        }
    });
}
const inputBox = document.createElement('input');
inputBox.type = 'text';
inputBox.id = 'roomHideInputBox';
inputBox.placeholder = 'Vanish Rooms..';
inputBox.style.cssText = `
    float: right;
    padding: 2px 8px;
    margin: 5px 20px;
    border: 2px solid #006157;
    border-radius: 5px;
    font: large futurept_b1;
`;
const topBar = document.getElementById('roomlisttopbar');
topBar.appendChild(inputBox);
inputBox.addEventListener('keyup', ev => filterRooms(ev.target.value));
const roomListObserver = new MutationObserver(() => {
    filterRooms(inputBox.value);
});
roomListObserver.observe(document.getElementById('roomlisttable'), {
    childList: true,
    subtree: true,
});
filterRooms(inputBox.value);