box3破解防沉迷

破解防沉迷

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
// ==UserScript==
// @name         box3破解防沉迷
// @version      0.1
// @description  破解防沉迷
// @author       hackcloth
// @match        https://box3.codemao.cn/p/*
// @match        https://box3.fun/p/*
// @icon         https://static.box3.codemao.cn/img/QmUX51Fo1NTRP5H4cQa4UMcTCP7ZhyDwLvQsKM2zbStdMJ_520_216_cover.avif
// @grant        none
// @require      https://cdn.jsdelivr.net/npm/lil-gui@0.16
// @license      GPL
// @namespace    https://greasyfork.org/
// ==/UserScript==

(function () {
    function a() {
        try {
            var box3CoreElement = document.querySelector('#react-container');
            var reactNodeName = Object.keys(box3CoreElement).filter((v) =>
                v.includes('reactContain')
            )[0];
            var core =
                box3CoreElement[reactNodeName].updateQueue.baseState.element.props.children
                    .props.children.props;
            window.core = core;
            document.func = document.querySelector('.desktop')._reactRootContainer._internalRoot.current.updateQueue.baseState.element.props.children.props.children.props.state;
            return true;
        } catch (e) {
            console.warn(e)
            return undefined;
        };
    };
    if(a()){
        a();
        core.start();
        console.log(`box3防沉迷运行成功!`)
    }
    else{
        console.log(`box3防沉迷未知错误。`)
    }
})()