Bonk.io Quick Start

Start the game without countdown.

// ==UserScript==
// @name         Bonk.io Quick Start
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Start the game without countdown.
// @author       Silly One
// @match        https://*.bonk.io/*
// @match        https://*.bonkisback.io/*
// @run-at       document-start
// @grant        none
// @license      MIT
// ==/UserScript==

const injectorName = "Quick Start";


function injector(src){
    let newSrc = src;
    const test = newSrc.match(/B9G\[94\]\s*=\s*3;/);
    newSrc = newSrc.replace(test, `B9G[94] = 0;`);
    if(src === newSrc) throw "Injection failed!";
    console.log(injectorName+" injector run");
    return newSrc;
}

if(!window.bonkCodeInjectors) window.bonkCodeInjectors = [];
window.bonkCodeInjectors.push(bonkCode => {
    try {
        return injector(bonkCode);
    } catch (error) {
        alert(`Whoops! ${injectorName} was unable to load.`);
        throw error;
    }
});

console.log(injectorName+" injector loaded");