fitten code ui modify

try to take over the world!

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         fitten code ui modify
// @namespace    https://code.fittentech.com/try
// @version      2025-1-1
// @description  try to take over the world!
// @author       You
// @match        https://code.fittentech.com/try
// @icon         https://www.google.com/s2/favicons?sz=64&domain=fittentech.com
// @grant        none
// ==/UserScript==

(function () {
    'use strict';

    // Your code here...
    window.onload = function () {
        setTimeout(
            () => { myFunction(); },
            1000
        );
        console.log("所有内容都已加载完毕");

    };

    function myFunction() {
        document.querySelector(".site-header").style.display = "none";
        document.querySelector(".iframe-intro-text").style.display = "none";
        let e = document.querySelector(".iframes-container");
        e.style.display = "initial";
        document.querySelector("html").style.background = "#1e1e1e";

        let m = e.querySelector("iframe:nth-of-type(1)");
        m.style.position = " fixed";
        m.style.height = " 100vh";
        m.style.top = "0";
        m.style.right = " 0";
        m.style.left = " 0";
        m.style.width = " 100%";
        m.style.zIndex = "99999";


        let ed = e.querySelector("iframe:nth-of-type(2)");
        ed.style.position = " fixed";
        ed.style.height = "100vh";
        ed.style.top = "0";
        ed.style.right = " 0";
        ed.style.left = " 0";
        ed.style.width = " 100%";

        ed.contentDocument.querySelector("#tabs").style.display = "none";
        ed.contentDocument.querySelector("body").style.margin = "0";
        ed.contentDocument.querySelector("#editor").style.height = "100%";
    }
})();