fitten code ui modify

try to take over the world!

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==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%";
    }
})();