Creality Print Local Web Layout Ender 3 V3 KE

Relayout creality prints local dashboard and fix camera size

Устаревшая версия за 04.01.2024. Перейдите к последней версии.

// ==UserScript==
// @name         Creality Print Local Web Layout Ender 3 V3 KE
// @namespace    http://tampermonkey.net/
// @version      2023-12-31
// @description  Relayout creality prints local dashboard and fix camera size
// @author       wowthatisrandom
// @match        http://192.168.1.112/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=1.150
// @grant        none
// @license      MIT 
// ==/UserScript==

(function() {
    'use strict';

    var delayInMilliseconds = 100; //1 second

    setTimeout(function() {
        const leftComponent = document.querySelector(".leftComponent");
        const status = leftComponent.querySelector(".control-main");
        const controls = leftComponent.querySelector(".control-main-set");
        const filePicker = leftComponent.querySelector(".comp-FileManage");

        const rightComponent = document.querySelector(".rightComponent");
        const camSection = rightComponent.querySelector(".comp-CameraShow");
        const tempSection = rightComponent.querySelector(".comp-TemperatureControl");
        const bedNet = rightComponent.querySelector(".control-main");

        leftComponent.removeChild(controls);
        leftComponent.removeChild(filePicker);

        rightComponent.removeChild(tempSection);

        leftComponent.appendChild(filePicker);
        leftComponent.appendChild(controls);
        leftComponent.appendChild(tempSection);

        camSection.style.removeProperty('height');

    }, delayInMilliseconds);

})();