RBLU

RocketBall Limit Unlocker

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         RBLU
// @author       0vC4
// @version      1.1
// @description  RocketBall Limit Unlocker
// @namespace    https://greasyfork.org/users/670183-exnonull
// @match        http://www.pucks.io/*
// @match        https://www.pucks.io/*
// @match        http://www.bumpyball.io/*
// @match        https://www.bumpyball.io/*
// @icon         https://www.google.com/s2/favicons?domain=bumpyball.io
// @run-at       document-start
// @grant        none
// @license      MIT
// ==/UserScript==

(() => {
    const proto = XMLHttpRequest.prototype;

    if (!proto._open) proto._open = proto.open;
    proto.open = function () {
        const [method, url] = arguments;
        Object.assign(this, {method, url});
        return this._open.apply(this, arguments);
    };

    if (!proto._send) proto._send = proto.send;
    proto.send = function (body) {
        if (this.url.match(/Listing\?Game=BumpyBall/)) {
            this._lnd = this.onload;
            this.onload = function (e) {
                const table = JSON.parse(new TextDecoder().decode(this.response));
                table.forEach(server => {
                    server.MaxPlayers = 999;
                });

                Object.defineProperty(this, 'response', {
                  enumerable: true,
                  configurable: true,
                  writable: true,
                  value: new TextEncoder().encode(JSON.stringify(table)).buffer
                });
                this._lnd(e);
            };
        }
        if (this.url.match(/\/Ping/)) {
            this._lnd = this.onload;
            this.onload = function (e) {
                const server = JSON.parse(new TextDecoder().decode(this.response));
                server.MaxPlayers = 999;

                Object.defineProperty(this, 'response', {
                  enumerable: true,
                  configurable: true,
                  writable: true,
                  value: new TextEncoder().encode(JSON.stringify(server)).buffer
                });
                this._lnd(e);
            };
        }
        return this._send.apply(this, arguments)
    };
})();
// 0vC4#7152