MSX 1050 ti

Fix pentru iframe + Mod Menu

Tendrás que instalar una extensión para tu navegador como Tampermonkey, Greasemonkey o Violentmonkey si quieres utilizar este script.

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

Tendrás que instalar una extensión como Tampermonkey o Violentmonkey para instalar este script.

Necesitarás instalar una extensión como Tampermonkey o Userscripts para instalar este script.

Tendrás que instalar una extensión como Tampermonkey antes de poder instalar este script.

Necesitarás instalar una extensión para administrar scripts de usuario si quieres instalar este script.

(Ya tengo un administrador de scripts de usuario, déjame instalarlo)

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

(Ya tengo un administrador de estilos de usuario, déjame instalarlo)

// ==UserScript==
// @name         MSX 1050 ti
// @namespace    http://tampermonkey.net/
// @version      3.0
// @description  Fix pentru iframe + Mod Menu
// @license MIT
// @match        *://sploop.io/*
// @match        *://sploop.io/*?*
// @grant        none
// @run-at       document-end
// ==/UserScript==
alert("hELLO I AM LELE and i like to script this mod its for fun a lot of buggs join my discord kiss love");
alert("MSX 1050 ti Version ");
//MSX 1050 ti LMU// //info?// This its a mod design to be powered by the engine base 1.0 it cant use multibox or other fetures if you dellet this the mod will shut down // whats MSX 1050 ti this its what it can run exepemple it cant run auto heal or others this only for visuals //


(function () {

    // ---------------- CORE STATE ----------------
    const STATE = {
        mode: "low",
        xtracing: false,
        vsync: false,
        smoothness: 0,
        menuVisible: true,
        trails: false,
        rainbow: false
    };

    let fpsInterval = null;
    let fogAnimFrame = null;
    let fogParticles = [];
    let rainDrops = [];
    let lightningTimer = 0;

    // ---------------- THERMAL ENGINE 2.0 ----------------
    let gpuTemp = 38;

    const tempUI = document.createElement("div");
    tempUI.style.position = "fixed";
    tempUI.style.top = "40px";
    tempUI.style.left = "10px";
    tempUI.style.fontSize = "18px";
    tempUI.style.fontFamily = "Arial Black";
    tempUI.style.zIndex = "1000001";
    tempUI.style.color = "#55ff55";
    tempUI.style.textShadow = "0 0 10px #55ff55";
    tempUI.style.pointerEvents = "none";
    document.body.appendChild(tempUI);

    const warnUI = document.createElement("div");
    warnUI.style.position = "fixed";
    warnUI.style.top = "10px";
    warnUI.style.right = "10px";
    warnUI.style.fontSize = "20px";
    warnUI.style.fontFamily = "Arial Black";
    warnUI.style.zIndex = "1000001";
    warnUI.style.color = "#ff4444";
    warnUI.style.textShadow = "0 0 10px #ff4444";
    warnUI.style.display = "none";
    warnUI.style.pointerEvents = "none";
    document.body.appendChild(warnUI);

    function updateTemp() {

        if (STATE.mode === "low") gpuTemp += 0.010;
        if (STATE.mode === "mid") gpuTemp += 0.025;
        if (STATE.mode === "high") gpuTemp += 0.045;
        if (STATE.mode === "ultra") gpuTemp += 0.055;

        if (STATE.xtracing) gpuTemp += 0.03;

        if (!STATE.xtracing && STATE.mode === "low") gpuTemp -= 0.015;

        if (gpuTemp > 78) gpuTemp = 78;
        if (gpuTemp < 32) gpuTemp = 32;

        if (gpuTemp < 50) tempUI.style.color = "#55ff55";
        else if (gpuTemp < 65) tempUI.style.color = "#ffee55";
        else tempUI.style.color = "#ff4444";

        tempUI.innerText = "Temp: " + Math.floor(gpuTemp) + "°C";

        warnUI.style.display = gpuTemp >= 70 ? "block" : "none";
        warnUI.innerText = gpuTemp >= 70 ? "⚠ HIGH TEMPERATURE!" : "";
    }

    setInterval(updateTemp, 200);
    // ---------------- LOGO ----------------
    const logo = document.createElement("div");
    logo.innerText = "MSX 1050 Ti v2.5";
    logo.style.position = "fixed";
    logo.style.bottom = "10px";
    logo.style.left = "10px";
    logo.style.color = "#8a5cff";
    logo.style.fontSize = "26px";
    logo.style.fontFamily = "Arial Black";
    logo.style.textShadow = "0 0 14px #8a5cff, 0 0 24px #5c9dff";
    logo.style.zIndex = "1000002";
    logo.style.pointerEvents = "none";
    document.body.appendChild(logo);

    // ---------------- FPS ----------------
    const fps = document.createElement("div");
    fps.style.position = "fixed";
    fps.style.top = "10px";
    fps.style.left = "10px";
    fps.style.fontSize = "20px";
    fps.style.fontFamily = "Arial Black";
    fps.style.zIndex = "1000001";
    fps.style.textShadow = "0 0 10px black";
    fps.style.color = "#00ff44";
    fps.style.pointerEvents = "none";
    document.body.appendChild(fps);

    function startDynamicFPS() {
        if (fpsInterval) clearInterval(fpsInterval);

        fpsInterval = setInterval(() => {
            let min, max;

            if (STATE.mode === "low") { min = 210; max = 260; }
            if (STATE.mode === "mid") { min = 120; max = 180; }
            if (STATE.mode === "high") { min = 90; max = 140; }
            if (STATE.mode === "ultra") { min = 60; max = 90; }

            let value = Math.floor(Math.random() * (max - min + 1)) + min;

            if (STATE.xtracing) value -= 5;

            if (STATE.vsync) {
                if (STATE.mode === "low") value = 200;
                if (STATE.mode === "mid") value = 144;
                if (STATE.mode === "high") value = 100;
                if (STATE.mode === "ultra") value = 72;
            }

            fps.innerText = "FPS: " + value;

            if (value >= 160) fps.style.color = "#00ff44";
            else if (value >= 80) fps.style.color = "#ffee00";
            else fps.style.color = "#ff4444";

        }, 150);
    }

    // ---------------- TAG ----------------
    const msxTag = document.createElement("div");
    msxTag.innerText = "MSX 1050 Ti";
    msxTag.style.position = "fixed";
    msxTag.style.bottom = "40px";
    msxTag.style.left = "10px";
    msxTag.style.fontSize = "20px";
    msxTag.style.fontFamily = "Arial Black";
    msxTag.style.color = "#00ffee";
    msxTag.style.textShadow = "0 0 12px #00ffee";
    msxTag.style.zIndex = "1000000";
    msxTag.style.pointerEvents = "none";
    document.body.appendChild(msxTag);

    // ---------------- LAYERS ----------------
    const gfxLayer = document.createElement("div");
    gfxLayer.style.position = "fixed";
    gfxLayer.style.inset = "0";
    gfxLayer.style.pointerEvents = "none";
    gfxLayer.style.zIndex = "99990";
    gfxLayer.style.transition = "0.25s ease";
    document.body.appendChild(gfxLayer);

    const smoothLayer = document.createElement("div");
    smoothLayer.style.position = "fixed";
    smoothLayer.style.inset = "0";
    smoothLayer.style.pointerEvents = "none";
    smoothLayer.style.zIndex = "99989";
    smoothLayer.style.transition = "0.25s ease";
    document.body.appendChild(smoothLayer);

    const blurLayer = document.createElement("div");
    blurLayer.style.position = "fixed";
    blurLayer.style.inset = "0";
    blurLayer.style.pointerEvents = "none";
    blurLayer.style.zIndex = "99988";
    blurLayer.style.backdropFilter = "none";
    blurLayer.style.transition = "0.4s ease";
    document.body.appendChild(blurLayer);
    // ---------------- FOG CANVAS ----------------
    const fogCanvas = document.createElement("canvas");
    fogCanvas.width = window.innerWidth;
    fogCanvas.height = window.innerHeight;
    fogCanvas.style.position = "fixed";
    fogCanvas.style.inset = "0";
    fogCanvas.style.pointerEvents = "none";
    fogCanvas.style.zIndex = "99991";
    document.body.appendChild(fogCanvas);

    const fogCtx = fogCanvas.getContext("2d");

    function createFogHigh() {
        fogParticles = [];
        for (let i = 0; i < 40; i++) {
            fogParticles.push({
                x: Math.random() * fogCanvas.width,
                y: Math.random() * fogCanvas.height,
                r: Math.random() * 200 + 160,
                dx: (Math.random() - 0.5) * 0.2,
                dy: (Math.random() - 0.5) * 0.15,
                alpha: Math.random() * 0.4 + 0.35
            });
        }
    }

    function createFogUltra() {
        fogParticles = [];
        for (let i = 0; i < 55; i++) {
            fogParticles.push({
                x: Math.random() * fogCanvas.width,
                y: Math.random() * fogCanvas.height,
                r: Math.random() * 180 + 140,
                dx: (Math.random() - 0.5) * 0.3,
                dy: (Math.random() - 0.5) * 0.2,
                alpha: Math.random() * 0.35 + 0.25
            });
        }
    }

    function createRain() {
        rainDrops = [];
        for (let i = 0; i < 120; i++) {
            rainDrops.push({
                x: Math.random() * fogCanvas.width,
                y: Math.random() * fogCanvas.height,
                len: Math.random() * 18 + 10,
                speed: Math.random() * 4 + 6
            });
        }
    }
    // ---------------- PANEL v2.5 ----------------

    const panel = document.createElement("div");
    panel.style.position = "fixed";
    panel.style.top = "50%";
    panel.style.left = "50%";
    panel.style.transform = "translate(-50%, -50%)";
    panel.style.width = "360px";
    panel.style.padding = "20px";
    panel.style.borderRadius = "16px";
    panel.style.background = "rgba(0,0,0,0.55)";
    panel.style.backdropFilter = "blur(14px)";
    panel.style.boxShadow = "0 0 25px #8a5cff";
    panel.style.border = "2px solid #8a5cff";
    panel.style.color = "white";
    panel.style.fontFamily = "Arial";
    panel.style.zIndex = "999999";
    panel.style.userSelect = "none";
    panel.style.transition = "0.4s ease";
    document.body.appendChild(panel);

    panel.innerHTML = `
        <div style="font-size:22px; font-weight:bold; text-align:center; margin-bottom:10px; text-shadow:0 0 12px #8a5cff;">
            MSX 1050 Ti v2.5 PANEL
        </div>

        <button id="lowBtn" class="msxBtn">Low Graphics (MSX 750)</button>
        <button id="midBtn" class="msxBtn">Mid Graphics (Sunny)</button>
        <button id="highBtn" class="msxBtn">High Graphics (Fog)</button>
        <button id="ultraBtn" class="msxBtn">Ultra Graphics (Storm + Rain)</button>

        <hr style="border:1px solid #8a5cff55; margin:10px 0;">

        <button id="perfBtn" class="msxBtn">X‑Tracing: OFF</button>
        <button id="trailBtn" class="msxBtn">Trails: OFF</button>
        <button id="rainbowBtn" class="msxBtn">Rainbow Trails: OFF</button>
        <button id="vsyncBtn" class="msxBtn">V-Sync: OFF</button>

        <hr style="border:1px solid #8a5cff55; margin:10px 0;">

        <label>Smoothness Mode (0–100)</label>
        <input id="smoothSlider" type="range" min="0" max="100" value="0" style="width:100%;">
    `;

    document.querySelectorAll(".msxBtn").forEach(btn => {
        btn.style.width = "100%";
        btn.style.padding = "10px";
        btn.style.marginBottom = "8px";
        btn.style.background = "rgba(0,0,0,0.45)";
        btn.style.border = "1px solid #8a5cff";
        btn.style.borderRadius = "8px";
        btn.style.color = "#8a5cff";
        btn.style.fontSize = "14px";
        btn.style.cursor = "pointer";
        btn.style.transition = "0.25s ease";
        btn.onmouseover = () => btn.style.boxShadow = "0 0 12px #8a5cff";
        btn.onmouseout = () => btn.style.boxShadow = "none";
    });
    // ---------------- UPDATE LOG 2.0 ----------------

    const updateLog = document.createElement("div");
    updateLog.style.position = "fixed";
    updateLog.style.top = "120px";
    updateLog.style.left = "120px";
    updateLog.style.width = "300px";
    updateLog.style.padding = "14px";
    updateLog.style.background = "rgba(0,0,0,0.65)";
    updateLog.style.border = "1px solid #8a5cff";
    updateLog.style.borderRadius = "10px";
    updateLog.style.boxShadow = "0 0 15px #8a5cff55";
    updateLog.style.color = "white";
    updateLog.style.fontFamily = "Arial";
    updateLog.style.fontSize = "13px";
    updateLog.style.zIndex = "1000001";
    updateLog.style.display = "none";
    document.body.appendChild(updateLog);

    updateLog.innerHTML = `
        <div style="font-size:16px; font-weight:bold; margin-bottom:6px; color:#bda0ff;">
            MSX 1050 Ti – Update 2.0
        </div>

        • Thermal Engine stabilizat<br>
        • Music Player (BETA)<br>
        • Device Info rework<br>
        • FPS stabilizat<br>
        • UI Panel îmbunătățit<br>
        • Fix lag în Ultra Mode<br><br>

        <button id="closeUpdateLog" style="
            width:100%;
            padding:6px;
            margin-top:6px;
            background:rgba(0,0,0,0.45);
            border:1px solid #8a5cff;
            border-radius:6px;
            color:#8a5cff;
            cursor:pointer;
        ">Close</button>
    `;

    const logBtn = document.createElement("button");
    logBtn.innerText = "Update Log";
    logBtn.className = "msxBtn";
    panel.appendChild(logBtn);

    logBtn.onclick = () => updateLog.style.display = "block";
    document.getElementById("closeUpdateLog").onclick = () => updateLog.style.display = "none";
    // ---------------- DEVICE INFO 2.0 ----------------

    const infoMenu = document.createElement("div");
    infoMenu.style.position = "fixed";
    infoMenu.style.top = "50%";
    infoMenu.style.left = "50%";
    infoMenu.style.transform = "translate(-50%, -50%)";
    infoMenu.style.width = "340px";
    infoMenu.style.padding = "16px";
    infoMenu.style.borderRadius = "12px";
    infoMenu.style.background = "rgba(0,0,0,0.75)";
    infoMenu.style.backdropFilter = "blur(12px)";
    infoMenu.style.boxShadow = "0 0 25px #8a5cff55";
    infoMenu.style.border = "1px solid #8a5cff";
    infoMenu.style.color = "white";
    infoMenu.style.fontFamily = "Arial";
    infoMenu.style.zIndex = "1000000";
    infoMenu.style.display = "none";
    document.body.appendChild(infoMenu);

    infoMenu.innerHTML = `
        <div style="font-size:18px; font-weight:600; margin-bottom:10px; color:#d5c4ff;">
            MSX 1050 Ti – Device Information
        </div>

        <div>Model: <b>MSX 1050 Ti</b></div>
        <div>Cores: <b>2</b></div>
        <div>ZRAM: <b>4</b></div>
        <div>Architecture: <b>MSX Gen 8</b></div>
        <div>X‑Tracing Engine: <b>v1.2</b></div>
        <div>Users Active: <b>230</b></div>

        <hr style="border:1px solid #8a5cff55; margin:10px 0;">

        <div>Music Player: <b>BETA</b></div>
        <div>Thermal Engine: <b>Stable</b></div>
        <div>Current Temp: <b id="infoTemp">--</b></div>

        <div style="font-size:11px; color:#aaa; margin-top:10px;">
            Press I to close this window.
        </div>
    `;

    window.addEventListener("keydown", e => {
        if (e.key.toLowerCase() === "i") {
            infoMenu.style.display =
                infoMenu.style.display === "none" ? "block" : "none";
        }
    });

    setInterval(() => {
        document.getElementById("infoTemp").innerText = Math.floor(gpuTemp) + "°C";
    }, 300);
    // ---------------- MUSIC PLAYER BETA ----------------

    const musicPanel = document.createElement("div");
    musicPanel.style.position = "fixed";
    musicPanel.style.bottom = "20px";
    musicPanel.style.right = "20px";
    musicPanel.style.width = "260px";
    musicPanel.style.padding = "14px";
    musicPanel.style.borderRadius = "12px";
    musicPanel.style.background = "rgba(0,0,0,0.55)";
    musicPanel.style.backdropFilter = "blur(10px)";
    musicPanel.style.boxShadow = "0 0 18px #8a5cff";
    musicPanel.style.border = "1px solid #8a5cff";
    musicPanel.style.color = "white";
    musicPanel.style.fontFamily = "Arial";
    musicPanel.style.zIndex = "999999";
    musicPanel.style.display = "none";
    document.body.appendChild(musicPanel);

    musicPanel.innerHTML = `
        <div style="font-size:16px; font-weight:bold; margin-bottom:8px;">
            🎵 MSX Music Player (BETA)
        </div>

        <input type="file" id="musicFile" accept="audio/*" style="width:100%; margin-bottom:10px;">

        <button id="playMusic" class="msxBtn">▶ Play</button>
        <button id="pauseMusic" class="msxBtn">⏸ Pause</button>
    `;

    let audioPlayer = new Audio();

    document.getElementById("musicFile").onchange = (e) => {
        const file = e.target.files[0];
        if (file) audioPlayer.src = URL.createObjectURL(file);
    };

    document.getElementById("playMusic").onclick = () => audioPlayer.play();
    document.getElementById("pauseMusic").onclick = () => audioPlayer.pause();

    window.addEventListener("keydown", e => {
        if (e.key.toLowerCase() === "k") {
            musicPanel.style.display =
                musicPanel.style.display === "none" ? "block" : "none";
        }
    });
    // ---------------- MENU TOGGLE ----------------
    window.addEventListener("keydown", e => {
        if (e.key.toLowerCase() === "m") {
            STATE.menuVisible = !STATE.menuVisible;
            panel.style.display = STATE.menuVisible ? "block" : "none";
        }
    });

    // ---------------- RESIZE ----------------
    window.addEventListener("resize", () => {
        fogCanvas.width = window.innerWidth;
        fogCanvas.height = window.innerHeight;

        if (STATE.mode === "high") createFogHigh();
        if (STATE.mode === "ultra") {
            createFogUltra();
            createRain();
        }
    });

    // ---------------- START DEFAULT ----------------
    applyGraphics();
    startDynamicFPS();

})();