// ==UserScript== // @name Moonstone Client for bloxd.io // @namespace http://tampermonkey.net/ // @version 0.3 // @description this is cool // @author someone // @match https://bloxd.io/ // @grant GM_addStyle // @grant unsafeWindow // @license MIT // @downloadURL none // ==/UserScript== function getCookie(cname) { let name = cname + "="; let decodedCookie = decodeURIComponent(document.cookie); let ca = decodedCookie.split(';'); for(let i = 0; i { item.style.border = "none"; }) names[0].textContent = "Survival"; names[0].style.textShadow = "none"; imgs[0].src = "https://i.imgur.com/G9bUnQO.png"; names[1].textContent = "Peaceful"; names[1].style.textShadow = "none"; imgs[1].src = "https://i.imgur.com/xC9jltf.png"; names[2].textContent = "Creative"; names[2].style.textShadow = "none"; imgs[2].src = "https://i.imgur.com/BQEsCog.png"; names[3].textContent = "Bedwars Squads"; names[3].style.textShadow = "none"; imgs[3].src = "https://i.imgur.com/TaF7UmB.png"; names[4].textContent = "Bedwars Duos"; names[4].style.textShadow = "none"; imgs[4].src = "https://i.imgur.com/QqM1WwQ.png"; names[5].textContent = "Skywars"; names[5].style.textShadow = "none"; imgs[5].src = "https://i.imgur.com/1EvgKmL.png"; names[6].textContent = "Oneblock"; names[6].style.textShadow = "none"; imgs[6].src = "https://i.imgur.com/aXstUVN.png"; names[7].textContent = "Greenville"; names[7].style.textShadow = "none"; imgs[7].src = "https://i.imgur.com/YQsbnFc.png"; names[8].textContent = "Cube Warfare"; names[8].style.textShadow = "none"; imgs[8].src = "https://i.imgur.com/heFKXJ6.png"; names[9].textContent = "Eviltower"; names[9].style.textShadow = "none"; imgs[9].src = "https://i.imgur.com/Gpm1cvW.png"; names[10].textContent = "Doodlecube"; names[10].style.textShadow = "none"; imgs[10].src = "https://i.imgur.com/hjUAKVI.png"; names[11].textContent = "BloxdHop"; names[11].style.textShadow = "none"; imgs[11].src = "https://i.imgur.com/MPRY80l.png"; names[12].textContent = "Hide & Seek"; names[12].style.textShadow = "none"; imgs[12].src = "https://i.imgur.com/UXVWqA5.png"; names[14].textContent = "Plots(superflat)"; imgs[14].src = "https://i.imgur.com/mMwt42i.png"; names[14].style.textShadow = "none"; names[16].textContent = "Worlds"; imgs[16].src = "https://i.imgur.com/TWCWlyP.png"; names[16].style.textShadow = "none"; 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(); (function() { unsafeWindow.moonstone_mods_save = function() { var checkBoxesSelected = document.getElementById("moonstone_mods").querySelectorAll('[type="checkbox"]:checked'); var modsEnabled = []; for (i = 0; i < checkBoxesSelected.length; i++) { var mod = checkBoxesSelected[i]; modsEnabled.push(mod.name); } document.cookie = "modsEnabled=" + JSON.stringify(modsEnabled); console.log(JSON.parse(getCookie("modsEnabled"))); window.location.reload(); } })(); (function() { 'use strict'; const fontLink = document.createElement('link'); fontLink.href = 'https://db.onlinewebfonts.com/c/68c9057f4e4dc415b2648f88526aeea7?family=Reglisse-Fill'; fontLink.rel = 'stylesheet'; document.head.appendChild(fontLink); var googclassroom_mod_checked = ""; var test_mod_checked = ""; if (JSON.parse(getCookie("modsEnabled")).includes('googclassroom')) { googclassroom_mod_checked = " checked"; } if (JSON.parse(getCookie("modsEnabled")).includes('test')) { test_mod_checked = " checked"; } const div = document.createElement('div'); div.id="moonstone_mods"; div.style.position = "fixed"; div.style.color = "#fff"; div.innerHTML = "Moonstone Client - Mods




"; div.style.top = "30%"; div.style.left = "50%"; div.style.zIndex = "2"; div.style.fontWeight = "bold"; div.style.borderRadius = "15px"; div.style.fontSize = "18px"; div.style.height = "6vh"; div.style.paddingTop = "0.1rem"; div.style.justifyContent = "center"; div.style.width = "60vw"; div.style.height = "50vh"; div.style.transform = "translateX(-50%)"; div.style.textAlign = "center"; div.style.lineHeight = "50px"; div.style.backgroundColor = "black"; div.style.cursor = "pointer"; div.style.display = "none"; document.body.appendChild(div); document.addEventListener("keypress", function(event) { if (event.key === "=") { var div = document.getElementById("moonstone_mods"); if (div.style.display == "none") { div.style.display = "block"; } else { div.style.display = "none"; } } }); })(); // Hotbar (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.backgroundColor = "#D13D2E"; hotbar.style.boxShadow = "inset -2px -2px 10px 0px rgb(133, 0, 0), inset 0.3px 0.3px 5px 0px rgb(255, 255, 255)" hotbar.style.outline = "transparent" }); } if (selectedslot) { selectedslot.forEach(function(slot) { slot.style.backgroundColor = "#c9991c"; slot.style.boxShadow = "inset -2px -2px 10px 0px rgb(210, 183, 45), inset 0.3px 0.3px 5px 0px rgb(255, 255, 255)"; slot.style.borderColor = "#b88c1a"; slot.style.outline = "transparent"; }); } }, 1); })();