Bumpyball.io/Pucks.io Everyone same car Mod

You and Everybody else in the server has same vehicle as you(except thsoe guys who use first car, they all stink(jk,i love all cars))

// ==UserScript==
// @name         Bumpyball.io/Pucks.io Everyone same car Mod
// @namespace    https://gf.qytechs.cn/en/users/1462379
// @version      V1
// @description  You and Everybody else in the server has same vehicle as you(except thsoe guys who use first car, they all stink(jk,i love all cars))
// @author       3lectr0N!nj@
// @match        https://www.pucks.io/
// @match        https://www.bumpyball.io/
// @match        https://www.bumpyball.io/staging/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=pucks.io
// @grant        none
// @run-at document-start
// ==/UserScript==
window.onload = function() {
            alert("This mod allows you and everyone in server use a same car."+
                  "You can change in between game but for everyone to get that change you need to score goal or start a new game or leave and join back with the change."+
                  "Press Ctrl key to change your car especially before joining game."+
                  "Enjoy!");
        };
let game = window.game = {
car:0,
}

function HandleServerResponses (data) {
const ind = [];
        data.forEach((value, index) => {
            if (value === 48) {
                ind.push(index);
            }
        });
            if(ind.length>0&&data.length){
        ind.forEach(index => {
            if (data[3]==8&&data[4]==2&&data[5]==18&&data[index+1]<15) {
                data[index + 1] = game.car;
                            }
            if (data[2]==8&&data[3]==3&&data[4]==18&&data[index+1]<15) {
                data[index + 1] = game.car;
                            }
            if (data[2]==8&&data[3]==11&&data[4]==18&&data[index+1]<15) {
                data[index + 1] = game.car;
                            }
            if (data[2]==8&&data[3]==13&&data[4]==18&&data[index+1]<15) {
                data[index + 1] = game.car;
                            }
        });
                return data
            }else{
            return data;
            }
}



WebSocket.prototype.s = WebSocket.prototype.send;
WebSocket.prototype.send = function (data) {
   if (!this.om) {
           window.game.ws = this;
           this.om = this.onmessage;
           this.onmessage = async (e) => {
               const arrayBuffer = await e.data.arrayBuffer();
               let uint8Array = new Uint8Array(arrayBuffer);
               uint8Array = (HandleServerResponses(uint8Array))
               const m = new Blob([uint8Array], { type: "" });
               const msg = new MessageEvent(e.type, {
                data: m,
                ports: e.ports,
                origin: e.origin,
                lastEventId: e.lastEventId,
                source: e.source,
            })
               this.om(msg);
           }
   }
   this.s(data);
}
document.onkeydown = x => {
  if (x.key === "Control") {
    const e = prompt('Choose the car you want:\n'+
                    'Level:Car-Code\nLevel-:Cruiser-1\nLevel-2:Tricked Out-2\nLevel-3:Bugged Out-3\nLevel-4:Taxi Cab-4\nLevel-5:Hot Rod-5\nLevel-7:Drag Racer-6\nLevel-10:Classic-7\nLevel-12:Soccer-Van-8\nLevel-15:Cement Mixer-9\nLevel-20:Apocalypse-10\nLevel-25:Dump Truck-11\nLevel-30:Steam Roller-12\nLevel-35:Box Car-14\nLevel-50:Pusher-13\nType in the code of the car u want')
    game.car = e
  }
};

QingJ © 2025

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