Greasy Fork

Greasy Fork is available in English.

Brune Remod

A remodifier to remodify the Bloxd.io home screen and cursur. Use of some of Nexus Client code is there, and Blueify's Keystrokes!

当前为 2024-01-18 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Brune Remod
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  A remodifier to remodify the Bloxd.io home screen and cursur. Use of some of Nexus Client code is there, and Blueify's Keystrokes!
// @author       Brune, ChatGPT, Blueify and NexusClient
// @match        https://bloxd.io/
// @icon         https://i.imgur.com/xXCBWbO.png
// @grant        GM_addStyle
// @license      MIT
// ==/UserScript==
//Liecense = "https://creativecommons.org/licenses/by-nc-sa/4.0/?ref=chooser-v1"
//Brune Bloxd.io Remodification © 2023 by BruneGaming is licensed under CC BY-NC-SA 4.0

// Draggable Keystrokes (partly Blueify Code)
(function() {
    'use strict';

    let keystrokescontainer;
    keystrokescontainer = document.createElement("div");
    keystrokescontainer.style.zIndex = "10000";
    keystrokescontainer.style.width = "300px";
    keystrokescontainer.style.height = "170px";
    keystrokescontainer.style.transform = "translate(-50%, -50%)";
    keystrokescontainer.style.backgroundColor = "transparent"; // Remove the black background
    keystrokescontainer.style.top = "50%";
    keystrokescontainer.style.position = "fixed";
    keystrokescontainer.style.left = "50%";
    keystrokescontainer.style.opacity = "70%";
    document.body.appendChild(keystrokescontainer);

    let isDragging = false;
    let offsetX = 0;
    let offsetY = 0;

    keystrokescontainer.addEventListener('mousedown', function(event) {
        if (event.target.nodeName !== 'INPUT') {
            isDragging = true;
            offsetX = event.clientX;
            offsetY = event.clientY;
        }
    });

    document.addEventListener('mousemove', function(event) {
        if (isDragging) {
            const left = event.clientX;
            const top = event.clientY;

            keystrokescontainer.style.left = left + "px";
            keystrokescontainer.style.top = top + "px";
        }
    });

    document.addEventListener('mouseup', function() {
        isDragging = false;
    });




    // Function to create a keystroke element with common styles (this is me and ChatGPT!)
    function createKeystrokeElement(text, top, left, width, height) {
        let keystroke = document.createElement('div');
        keystroke.style.position = "fixed";
        keystroke.style.color = "#ffffff";
        keystroke.textContent = text;
        keystroke.style.top = top;
        keystroke.style.left = left;
        keystroke.style.transform = "translate(-50%, -50%)"; // Same thing as center
        keystroke.style.zIndex = "10000";
        keystroke.style.fontWeight = "bold";
        keystroke.style.borderRadius = "10px";
        keystroke.style.backgroundColor = "#66ccff";
        keystroke.style.fontSize = "20px";    // How big the Keystroke Letters are. Change the number for the size.
        keystroke.style.height = height;
        keystroke.style.width = width;
        keystroke.style.textAlign = "center";   // This centres it when it starts and then u can drag to ur place
        keystroke.style.lineHeight = height;

        return keystroke;
    }

    let wkey = createKeystrokeElement("W", "5px", "50%", "50px", "50px");   // W = Text inside the Keystroke, 5px = the hight it is from the vertical centre line, 50% is middle of page, 50px, 50px are length and width
    let skey = createKeystrokeElement("S", "60px", "50%", "50px", "50px");
    let akey = createKeystrokeElement("A", "60px", "31.5%", "50px", "50px");
    let dkey = createKeystrokeElement("D", "60px", "68.5%", "50px", "50px");

    let spaceKey = createKeystrokeElement("SPACE", "115px", "50%", "160px", "50px");
    let shiftKey = createKeystrokeElement("Shift", "115px", "9%", "75px", "50px");
    let lmb = createKeystrokeElement("LMB", "60px", "91%", "75px", "50px");
    let rmb = createKeystrokeElement("RMB", "115px", "91%", "75px", "50px");

    let ckey = createKeystrokeElement("C", "60px", "9%", "75px", "50px");




    // Add the elements to the body and the clientMainMenu
    keystrokescontainer.appendChild(wkey);
    keystrokescontainer.appendChild(skey);
    keystrokescontainer.appendChild(akey);
    keystrokescontainer.appendChild(dkey);
    keystrokescontainer.appendChild(shiftKey);
    keystrokescontainer.appendChild(spaceKey);
    keystrokescontainer.appendChild(lmb);
    keystrokescontainer.appendChild(rmb);
    keystrokescontainer.appendChild(ckey);   // these links all of these to the main module so they can be seen


    document.addEventListener('keydown', function(event) {  // this part of the code checks if you click the button
        if (event.key === 'w' || event.key === 'W') {  // || means "or"
            wkey.style.backgroundColor = "#3366ff";
        }
        if (event.key === 's' || event.key === 'S') {
            skey.style.backgroundColor = "#3366ff";
        }
        if (event.key === 'a' || event.key === 'A') {
            akey.style.backgroundColor = "#3366ff";
        }
        if (event.key === 'd' || event.key === 'D') {
            dkey.style.backgroundColor = "#3366ff";
        }
        if (event.key === 'c' || event.key === 'C') {
            ckey.style.backgroundColor = "#3366ff";
        }
        if (event.key === ' ') { // Check for Space Bar key
            spaceKey.style.backgroundColor = "#3366ff";
        }
        if (event.key === 'Shift') {
            shiftKey.style.backgroundColor = "#3366ff";
        }
    });

    document.addEventListener('keyup', function(eventa) {
        if (eventa.key === 'w' || eventa.key === 'W') {
            wkey.style.backgroundColor = "#66ccff";
        }
        if (eventa.key === 's' || eventa.key === 'S') {
            skey.style.backgroundColor = "#66ccff";
        }
        if (eventa.key === 'a' || eventa.key === 'A') {
            akey.style.backgroundColor = "#66ccff";
        }
        if (eventa.key === 'd' || eventa.key === 'D') {
            dkey.style.backgroundColor = "#66ccff";
        }
        if (eventa.key === 'c' || eventa.key === 'C') {
            ckey.style.backgroundColor = "#66ccff";
        }
        if (eventa.key === ' ') { // Check for Space Bar key
            spaceKey.style.backgroundColor = "#66ccff";
        }
        if (eventa.key === 'Shift') {
            shiftKey.style.backgroundColor = "#66ccff";
        }
    });

    document.addEventListener('mousedown', function(event) {
        if (event.button === 0) {
            lmb.style.backgroundColor = "#3366ff"; //if u want the change the color when it is clicked do it here
        }
        if (event.button === 2) {
            rmb.style.backgroundColor = "#3366ff";
        }
    });

    document.addEventListener('mouseup', function(event) { //if u want to change how it is when its not clicked, changed the backgroundColor
        if (event.button === 0) {
            lmb.style.backgroundColor = "#66ccff";
        }
        if (event.button === 2) {
            rmb.style.backgroundColor = "#66ccff";
        }
    });
})();



setInterval(function() {
    'use strict';
    document.icon = "https://i.imgur.com/xXCBWbO.png" // Background Image
    document.title = "Brune.io"; // Website Title
    const maintext = document.querySelector('.Title.FullyFancyText'); //font
    maintext.style.fontFamily = "Reglisse-Fill, serif";
        maintext.style.textShadow = "none";
    maintext.style.webkitTextStroke = "none";

        document.querySelector('.Title.FullyFancyText').textContent = "⚔Brune⚔"; //bloxd.io text is here... i change it to brune u can change to anything else
    let background = document.getElementsByClassName("Background");
    background[0].src = "https://i.imgur.com/1jkeEFi.png";
    let names = document.getElementsByClassName("AvailableGameText");
    let imgs = document.getElementsByClassName("AvailableGameImg")
    let imgedits = document.getElementsByClassName("AvailableGame");
(function() {
    'use strict';
    const fontLink = document.createElement('link');
    fontLink.href = 'https://fonts.googleapis.com/css2?family=Ubuntu:wght@700&display=swap';
    fontLink.rel = 'stylesheet';

})

// Crosshair
    setInterval(function() {
    const crosshair = document.querySelector(".CrossHair");
    if (crosshair) {
        crosshair.textContent = "⚔";  //crosshair
        crosshair.style.width = "30px";
        crosshair.style.height = "30px";
    }
}, 1000);


document.querySelectorAll('.AvailableGame').forEach(item => {
    item.style.border = "none";
})

    //gamemodes and their pictures

    //survival
    names[0].textContent = "Survival";
    names[0].style.textShadow = "none";
    imgs[0].src = "https://i.imgur.com/c1NJi4C.png";

    //peaceful
    names[1].textContent = "Peaceful";
    names[1].style.textShadow = "none";
    imgs[1].src = "https://i.imgur.com/xtOIet6.png";

    //creative
    names[2].textContent = "Creative";
    names[2].style.textShadow = "none";
    imgs[2].src = "https://i.imgur.com/BQEsCog.png";

    //bedwars 4v4
    names[3].textContent = "Bedwars 4v4";
    names[3].style.textShadow = "none";
    imgs[3].src = "https://i.imgur.com/TaF7UmB.png";

    //bedwars 2v2
    names[4].textContent = "Bedwars Duo";
    names[4].style.textShadow = "none";
    imgs[4].src = "https://i.imgur.com/5ROcc1x.png";

    //Skywars
    names[5].textContent = "Skywars";
    names[5].style.textShadow = "none";
    imgs[5].src = "https://i.imgur.com/aXstUVN.png";

    //Oneblock
    names[6].textContent = "OneBlock";
    names[6].style.textShadow = "none";
    imgs[6].src = "https://i.imgur.com/YQsbnFc.png";

    //Greenville
    names[7].textContent = "BrookHaven";
    names[7].style.textShadow = "none";
    imgs[7].src = "https://i.imgur.com/heFKXJ6.png";

    //Cubewarfare
    names[8].textContent = "PixelWarfare";
    names[8].style.textShadow = "none";
    imgs[8].src = "https://i.imgur.com/Gpm1cvW.png";

    //EvilTower
    names[9].textContent = "Tower of Evil";
    names[9].style.textShadow = "none";
    imgs[9].src = "https://i.imgur.com/hjUAKVI.png";

    //DoodleCube
    names[10].textContent = "Doodle";
    names[10].style.textShadow = "none";
    imgs[10].src = "https://i.imgur.com/MPRY80l.png";

    //BloxdHop
    names[11].textContent = "Parkour";
    names[11].style.textShadow = "none";
    imgs[11].src = "https://i.imgur.com/UXVWqA5.png";

    //Hide n Seej
    names[12].textContent = "Hide & Seek";
    names[12].style.textShadow = "none";
    imgs[12].src = "https://i.imgur.com/qzwM7Jv.png";

    //murder mystery
    names[14].textContent = "Murder";
    imgs[14].src = "https://i.imgur.com/syv3Txr.png";
    names[14].style.textShadow = "none";

    //plots
    names[15].textContent = "Plots";
    imgs[15].src = "https://i.imgur.com/syv3Txr.png";
    names[15].style.textShadow = "none";

    //prison
    names[16].textContent = "Prison";
    imgs[16].src = "https://i.imgur.com/syv3Txr.png";
    names[16].style.textShadow = "none";

    //Worlds
    names[17].textContent = "Worlds";
    imgs[17].src = "https://i.imgur.com/syv3Txr.png";
    names[17].style.textShadow = "none";



    // hotbar styles... change the colours by the first 3 values, 4th value is transparency
        imgedits[0].style.border = "none";
imgedits[0].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
       imgedits[1].style.border = "none";
    imgedits[1].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
       imgedits[2].style.border = "none";
    imgedits[2].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
       imgedits[3].style.border = "none";
    imgedits[3].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
       imgedits[4].style.border = "none";
    imgedits[4].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
       imgedits[5].style.border = "none";
    imgedits[5].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
       imgedits[6].style.border = "none";
    imgedits[6].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
       imgedits[7].style.border = "none";
    imgedits[7].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
       imgedits[8].style.border = "none";
    imgedits[8].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
       imgedits[9].style.border = "none";
    imgedits[9].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
       imgedits[10].style.border = "none";
    imgedits[10].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
       imgedits[11].style.border = "none";
    imgedits[11].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
       imgedits[12].style.border = "none";
    imgedits[12].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
       imgedits[13].style.border = "none";
    imgedits[13].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
       imgedits[14].style.border = "none";
    imgedits[14].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";
           imgedits[15].style.border = "none";
    imgedits[15].style.boxShadow = "0px 10px 20px rgba(0, 0, 0, 0.3)";

},100);


//Ad Blocker
document.getElementsByClassName('partnersAndCredits SmallTextLight')[0].remove();
document.getElementsByClassName('SmallTextLight')[0].remove();
document.getElementsByClassName('AdContainer')[0].remove();


// links / copyright
(function() {
    'use strict';
    const fontLink = document.createElement('link');
    fontLink.href = 'youtube.com/@brunegaming';
    fontLink.rel = 'stylesheet';

    const text = document.createElement('div');
    text.style.position = "fixed";
    text.style.color = "#fff";
    text.textContent = "@BruneGaming";
    text.style.top = "1%";
    text.style.left = "50%";;
    text.style.zIndex = "10000";
    text.style.fontWeight = "bold";
    text.style.borderRadius = "25px";
    text.style.fontSize = "15px";
    text.style.height = "6vh";
    text.style.display = "flex";
    text.style.paddingTop = "0.1rem";
    text.style.justifyContent = "center";
    text.style.width = "10vw";
    text.style.height = "5vh";
    text.style.transform = "translateX(-50%)";
    text.style.textAlign = "center";
    text.style.lineHeight = "50px";
    text.onclick = "opener()"
text.style.boxShadow = "rgba(0, 0, 0, 0) 0px 54px 55px, rgba(0, 0, 0, 0) 0px -12px 30px, rgba(0, 0, 0, 0) 0px 4px 6px, rgba(0, 0, 0, 0) 0px 12px 13px, rgba(0, 0, 0, 0) 0px -3px 5px";
text.style.backgroundColor = "rgba(0,0,0,0";
text.style.cursor = "pointer";

    document.head.appendChild(fontLink);
    document.body.appendChild(text);
})();

// Hotbar animation
(function() {
    'use strict';

    setInterval(function() {
        const hotbarslots = document.querySelectorAll(".item");
        const selectedslot = document.querySelectorAll(".SelectedItem");
        if (hotbarslots) {
            hotbarslots.forEach(function(hotbar) {
                hotbar.style.borderRadius = "8px";
                hotbar.style.borderColor = "#303a5900";
                hotbar.style.animation = "colorSwitch 10s infinite"; // Add animation
                hotbar.style.outline = "transparent";
            });
        }
        if (selectedslot) {
            selectedslot.forEach(function(slot) {
                slot.style.animation = "colorSwitch 10s infinite"; // Add animation
                slot.style.borderColor = "#b88c1a";
                slot.style.outline = "transparent";
            });
        }
    }, 1);
})();

// Add a style for the animation change these or add more keyframes for more colors or smoother aniamtion
GM_addStyle(`
    @keyframes colorSwitch {
        0% {
            background-color: white;
        }
        25% {
            background-color: lightpurple; /* Add the actual color code for light purple */
        }
        50% {
            background-color: orange;
        }
        75% {
            background-color: purple;
        }
        100% {
            background-color: white;
        }
    }
`);

// Change cursor style to something unique - go away chatgpt :( but thx too lol
GM_addStyle(`
    body {
        cursor: url('your-cool-cursor-image.png'), auto;
    }
`);

//CREDIT: BLUEIFY, NEXUSCLIENT, CHATGPT, ME (BUG FIXING LOL), AND YOU GUYS :)))))))))))))))))))))))))))))))))))))))000