Bonk win changer

you can change the win system the text of win

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         Bonk win changer
// @namespace    http://tampermonkey.net/
// @version      01
// @description  you can change the win system the text of win
// @author       emiya440
// @match        https://bonk.io/*
// @match        https://bonkisback.io/*
// @icon         https://greasyfork.org/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTQ0OTA0LCJwdXIiOiJibG9iX2lkIn19--c6b29b5a8bb41bba2de56956509004effc0a642d/image.png?locale=fr
// @grant        none
// @license MIT
// ==/UserScript==
const button = document.createElement("button");
button.id = "injector";
button.innerHTML = "Inject (when the game start)";
button.title = "not injected";
button.onclick = Inject;
button.style.position = "absolute";
button.style.left = "10px";
button.style.top = "10px";
document.body.appendChild(button);
const inpute = document.createElement("input");
inpute.id = "code";
inpute.type = "text";
inpute.value = "Gg";
inpute.style.position = "absolute";
inpute.style.right = "10px";
inpute.style.top = "10px";
document.body.appendChild(inpute);
function Inject() {
    button.textContent = "Wait...";
    button.title = "injected";

    const winshow = document.querySelector("#ingamewinner");
    if (winshow) {
        button.textContent = "Injected! (don't inject two times)";
        const intervalId = setInterval(() => {
            const targetNode = winshow.childNodes[5];
            if (targetNode) {
                targetNode.textContent = inpute.value;
            } else {
                console.log("Element not found. Stopping interval.");
                clearInterval(intervalId);
            }
        }, 30);
    } else {
        button.textContent = "No injected >:[";
    }
}