hussein core

A clean, full-screen overlay menu for Miniblox.io, opens with U key. No cheats.

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

Bu betiği yüklemek için Tampermonkey gibi bir uzantı yüklemeniz gerekir.

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.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

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!)

Bu stili yüklemek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için Stylus gibi bir uzantı kurmanız gerekir.

Bu stili yükleyebilmek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı kurmanız gerekir.

Bu stili yükleyebilmek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

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

// ==UserScript==
// @name         hussein core
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  A clean, full-screen overlay menu for Miniblox.io, opens with U key. No cheats.
// @author       hussein
// @match        https://miniblox.io/*
// @grant        none
// @run-at       document-idle
// @license MIT
// ==/UserScript==
(function() {
    'use strict';

    // Create full-screen menu
    const menu = document.createElement('div');
    menu.style.position = 'fixed';
    menu.style.top = '0';
    menu.style.left = '0';
    menu.style.width = '100vw';
    menu.style.height = '100vh';
    menu.style.backgroundColor = 'rgba(40, 40, 40, 0.95)';
    menu.style.color = '#e0e0e0';
    menu.style.zIndex = '999999';
    menu.style.display = 'none';
    menu.style.overflow = 'auto';
    menu.style.fontFamily = 'Arial, sans-serif';
    menu.style.padding = '30px';
    menu.style.boxSizing = 'border-box';
    menu.style.backdropFilter = 'blur(5px)';
    menu.style.border = '1px solid #555';

    // Add title
    const title = document.createElement('h1');
    title.textContent = 'Rip_hussein Core';
    title.style.textAlign = 'center';
    title.style.color = '#ffffff';
    title.style.marginBottom = '30px';
    title.style.fontSize = '28px';
    menu.appendChild(title);

    // Function to create a custom button
    function createCustomButton(label, action) {
        const btn = document.createElement('button');
        btn.textContent = label;
        btn.style.display = 'block';
        btn.style.width = '80%';
        btn.style.margin = '15px auto';
        btn.style.padding = '12px';
        btn.style.fontSize = '16px';
        btn.style.backgroundColor = '#505050';
        btn.style.color = '#ffffff';
        btn.style.border = '1px solid #777';
        btn.style.borderRadius = '6px';
        btn.style.cursor = 'pointer';
        btn.style.transition = 'all 0.2s';
        btn.addEventListener('mouseover', () => { btn.style.backgroundColor = '#606060'; });
        btn.addEventListener('mouseout', () => { btn.style.backgroundColor = '#505050'; });
        btn.addEventListener('click', action);
        return btn;
    }

    // Add custom buttons
    menu.appendChild(createCustomButton('Mute Chat', () => alert('Chat Muted Just pls press F9 so it works completly and if you whant to disable it just go to the menu and press mute chat agin and press F9 agin so it works!!')));
    menu.appendChild(createCustomButton('Game Settings', () => alert('Settings clicked!')));
    menu.appendChild(createCustomButton('Friend List', () => {
        // Simulate pressing the Tab key to open the in-game menu, which contains the friend list
        const tabEvent = new KeyboardEvent('keydown', { key: 'Tab', bubbles: true });
        document.dispatchEvent(tabEvent);
    }));
    menu.appendChild(createCustomButton('fps Booster ', () => alert('Feature 1 clicked!')));
    menu.appendChild(createCustomButton('Display Keys in real time', () => {
        // Create the WASD overlay container
        const overlay = document.createElement('div');
        overlay.style.position = 'fixed';
        overlay.style.bottom = '20px';
        overlay.style.left = '20px';
        overlay.style.zIndex = '999998';
        overlay.style.display = 'flex';
        overlay.style.flexDirection = 'column';
        overlay.style.alignItems = 'center';
        overlay.style.gap = '5px';
        overlay.style.cursor = 'move'; // Show move cursor

        // Create the keys
        const createKey = (letter) => {
            const key = document.createElement('div');
            key.textContent = letter.toUpperCase();
            key.style.width = '40px';
            key.style.height = '40px';
            key.style.border = '2px solid #555';
            key.style.display = 'flex';
            key.style.justifyContent = 'center';
            key.style.alignItems = 'center';
            key.style.color = '#ccc';
            key.style.fontWeight = 'bold';
            key.style.borderRadius = '5px';
            key.style.transition = 'all 0.1s';
            return key;
        };

        // Create W, A, S, D keys in a cross shape
        const keyW = createKey('w');
        const keyASD = document.createElement('div');
        keyASD.style.display = 'flex';
        keyASD.style.gap = '5px';
        keyASD.appendChild(createKey('a'));
        keyASD.appendChild(createKey('s'));
        keyASD.appendChild(createKey('d'));

        // Add keys to the overlay
        overlay.appendChild(keyW);
        overlay.appendChild(keyASD);
        document.body.appendChild(overlay);

        // Make the overlay draggable
        let pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
        overlay.onmousedown = dragMouseDown;

        function dragMouseDown(e) {
            e = e || window.event;
            e.preventDefault();
            pos3 = e.clientX;
            pos4 = e.clientY;
            document.onmouseup = closeDragElement;
            document.onmousemove = elementDrag;
        }

        function elementDrag(e) {
            e = e || window.event;
            e.preventDefault();
            pos1 = pos3 - e.clientX;
            pos2 = pos4 - e.clientY;
            pos3 = e.clientX;
            pos4 = e.clientY;
            overlay.style.top = (overlay.offsetTop - pos2) + "px";
            overlay.style.left = (overlay.offsetLeft - pos1) + "px";
        }

        function closeDragElement() {
            document.onmouseup = null;
            document.onmousemove = null;
        }

        // Listen for keydown and keyup to highlight keys
        const keys = { w: keyW, a: keyASD.children[0], s: keyASD.children[1], d: keyASD.children[2] };
        const handleKeyDown = (e) => {
            const key = e.key.toLowerCase();
            if (keys[key]) {
                keys[key].style.backgroundColor = '#444';
                keys[key].style.color = '#fff';
                keys[key].style.transform = 'scale(0.95)';
            }
        };
        const handleKeyUp = (e) => {
            const key = e.key.toLowerCase();
            if (keys[key]) {
                keys[key].style.backgroundColor = '';
                keys[key].style.color = '#ccc';
                keys[key].style.transform = '';
            }
        };
        document.addEventListener('keydown', handleKeyDown);
        document.addEventListener('keyup', handleKeyUp);

        // Add a close button for the overlay
        const closeOverlayBtn = document.createElement('button');
        closeOverlayBtn.textContent = 'Close Keys';
        closeOverlayBtn.style.marginTop = '10px';
        closeOverlayBtn.style.padding = '5px 10px';
        closeOverlayBtn.style.fontSize = '12px';
        closeOverlayBtn.style.cursor = 'pointer';
        closeOverlayBtn.addEventListener('click', () => {
            document.body.removeChild(overlay);
            document.removeEventListener('keydown', handleKeyDown);
            document.removeEventListener('keyup', handleKeyUp);
            closeDragElement();
        });
        overlay.appendChild(closeOverlayBtn);
    }));

    // "Time Display" button
    menu.appendChild(createCustomButton('Time Display', () => {
        const timeDisplay = document.createElement('div');
        timeDisplay.style.position = 'fixed';
        timeDisplay.style.bottom = '20px';
        timeDisplay.style.left = '20px';
        timeDisplay.style.backgroundColor = 'rgba(0, 0, 0, 0.7)';
        timeDisplay.style.color = '#0f0';
        timeDisplay.style.padding = '10px';
        timeDisplay.style.borderRadius = '5px';
        timeDisplay.style.zIndex = '999998';
        timeDisplay.style.fontFamily = 'monospace';
        timeDisplay.style.fontSize = '14px';
        timeDisplay.style.cursor = 'move'; // Show move cursor
        document.body.appendChild(timeDisplay);

        // Make the time display draggable
        let pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
        timeDisplay.onmousedown = dragMouseDown;

        function dragMouseDown(e) {
            e = e || window.event;
            e.preventDefault();
            pos3 = e.clientX;
            pos4 = e.clientY;
            document.onmouseup = closeDragElement;
            document.onmousemove = elementDrag;
        }

        function elementDrag(e) {
            e = e || window.event;
            e.preventDefault();
            pos1 = pos3 - e.clientX;
            pos2 = pos4 - e.clientY;
            pos3 = e.clientX;
            pos4 = e.clientY;
            timeDisplay.style.top = (timeDisplay.offsetTop - pos2) + "px";
            timeDisplay.style.left = (timeDisplay.offsetLeft - pos1) + "px";
        }

        function closeDragElement() {
            document.onmouseup = null;
            document.onmousemove = null;
        }

        function updateTime() {
            const now = new Date();
            timeDisplay.textContent = now.toLocaleTimeString();
        }

        updateTime();
        const intervalId = setInterval(updateTime, 1000);

        const closeBtn = document.createElement('button');
        closeBtn.textContent = 'X';
        closeBtn.style.float = 'right';
        closeBtn.style.margin = '0 0 0 10px';
        closeBtn.style.background = 'none';
        closeBtn.style.border = 'none';
        closeBtn.style.color = '#fff';
        closeBtn.style.cursor = 'pointer';
        closeBtn.style.fontSize = '12px';
        closeBtn.addEventListener('click', () => {
            document.body.removeChild(timeDisplay);
            clearInterval(intervalId);
            closeDragElement();
        });
        timeDisplay.appendChild(closeBtn);
    }));

    // "Full Screen" button
    menu.appendChild(createCustomButton('Full Screen', () => {
        if (!document.fullscreenElement) {
            document.documentElement.requestFullscreen().catch(err => {
                console.error(`Error attempting to enable full-screen mode: ${err.message}`);
            });
        } else {
            document.exitFullscreen();
        }
    }));

    // "Themes" button
    menu.appendChild(createCustomButton('Themes', () => {
        // Create a small menu for theme selection
        const themeMenu = document.createElement('div');
        themeMenu.style.position = 'fixed';
        themeMenu.style.top = '50%';
        themeMenu.style.left = '50%';
        themeMenu.style.transform = 'translate(-50%, -50%)';
        themeMenu.style.backgroundColor = 'rgba(50, 50, 50, 0.95)';
        themeMenu.style.color = 'white';
        themeMenu.style.zIndex = '999999';
        themeMenu.style.padding = '20px';
        themeMenu.style.borderRadius = '10px';
        themeMenu.style.boxShadow = '0 0 20px rgba(0,0,0,0.5)';
        themeMenu.style.display = 'flex';
        themeMenu.style.flexDirection = 'column';
        themeMenu.style.alignItems = 'center';
        themeMenu.style.gap = '10px';

        // Function to create a theme button
        function createThemeButton(label, bgColor) {
            const btn = document.createElement('button');
            btn.textContent = label;
            btn.style.width = '100px';
            btn.style.padding = '10px';
            btn.style.backgroundColor = bgColor;
            btn.style.color = 'white';
            btn.style.border = 'none';
            btn.style.borderRadius = '5px';
            btn.style.cursor = 'pointer';
            btn.style.fontWeight = 'bold';
            btn.addEventListener('click', () => {
                // Apply the theme to the main menu
                menu.style.backgroundColor = bgColor;
                // Close the theme menu
                document.body.removeChild(themeMenu);
            });
            return btn;
        }

        // Add theme buttons
        themeMenu.appendChild(createThemeButton('White', 'white'));
        themeMenu.appendChild(createThemeButton('Red', 'red'));
        themeMenu.appendChild(createThemeButton('Yellow', 'yellow'));
        themeMenu.appendChild(createThemeButton('Green', 'green'));

        // Add a close button
        const closeBtn = document.createElement('button');
        closeBtn.textContent = 'Close';
        closeBtn.style.marginTop = '10px';
        closeBtn.style.padding = '5px 10px';
        closeBtn.style.cursor = 'pointer';
        closeBtn.addEventListener('click', () => {
            document.body.removeChild(themeMenu);
        });
        themeMenu.appendChild(closeBtn);

        // Add the theme menu to the page
        document.body.appendChild(themeMenu);
    }));

    // Add close button
    const closeBtn = document.createElement('button');
    closeBtn.textContent = 'Close Menu';
    closeBtn.style.display = 'block';
    closeBtn.style.width = '200px';
    closeBtn.style.margin = '30px auto';
    closeBtn.style.padding = '10px';
    closeBtn.style.fontSize = '16px';
    closeBtn.style.backgroundColor = '#d32f2f';
    closeBtn.style.color = 'white';
    closeBtn.style.border = 'none';
    closeBtn.style.borderRadius = '6px';
    closeBtn.style.cursor = 'pointer';
    closeBtn.addEventListener('click', () => { menu.style.display = 'none'; });
    menu.appendChild(closeBtn);

    // Add the menu to the page
    document.body.appendChild(menu);

    // Toggle menu with 'U' key
    document.addEventListener('keydown', (e) => {
        if (e.key.toLowerCase() === 'u') {
            e.preventDefault();
            menu.style.display = menu.style.display === 'none' ? 'block' : 'none';
        }
    });
})();