// ==UserScript== // @name Random script i found? // @namespace Don't use console for this! // @version v2.6.6 // @description much better than before Press [=] for instructions also my discord not Trollers xD#0961 // @license TC Meadow // @author TC Meadow // @match *://zombs.io/* // @require https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js // @downloadURL https://update.greasyfork.icu/scripts/438862/Random%20script%20i%20found.user.js // @updateURL https://update.greasyfork.icu/scripts/438862/Random%20script%20i%20found.meta.js // ==/UserScript== /* ######### CHANGELOG: 1.0.0 -> 1.79.9 === Unknown, this was too far before the changelog was created 1.80.0 -> 1.90.0 ==== UI fixes 1.90.1 -> 1.93.2 ===== Menu and score logger styling 1.93.3 -> 1.97.2 ====== User agent adjusts on CSS margin values and basic user agent detection to prevent inaccuracy over different screen resolutions 1.97.3 ======= Created Changelog 1.97.4 ======== Map styling 1.97.5 -> 1.97.9 ========= Fixed bugs with the onEnterWorld handlers and similar 1.98.1 -> 1.98.9 ========== Made it so that it blurs the game canvas and score logger when you open the menu 1.99.0 -> 1.99.5 =========== Created an algorithm for moving to a specific position on the map. Will be implemented later 1.99.5 -> 2.0.0 === Fixed bugs, and finally v2! 2.0.0 -> 2.1.6 ==== Made the MapMover stop when it gets to the destination 2.1.7 -> 2.1.9 ===== Optimized code and performance 2.2.0 -> 2.3.1 ====== Added new features to MapMover, for example being able to cancel the process, and a restart at a new click. Also fixed some bugs with it. 2.3.2 -> 2.3.7 ======= Better performance, also made game blurring and focusing more accurate when you open the menu. A couple other minor changes but thats pretty much it 2.3.7 -> 2.3.9 ======== Optimization, eHaxx watermark, and cross-compatability on different devices 2.3.9 -> 2.4.1 ========= Added confirmation when you wanted to MapMove 2.4.1 -> 2.4.3 ========== Added coordinates to bottom left of game, and fixed some styling issues 2.4.4 ===== Fixed some bugs with MapMover 4 minute timeouts 2.4.4 -> 2.4.6 ====== Made the script load with less glitches in styling 2.4.6 -> 2.6.6 ======= Added region capacity as to adapt to the new server population patches */ let serverCapacity; let capacity = new XMLHttpRequest(); capacity.open("GET", "http://zombs.io/capacity", true); capacity.onreadystatechange = () => { if(capacity.readyState === 4) { if(capacity.status === 200) { serverCapacity = JSON.parse(capacity.responseText); document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-form > select > optgroup:nth-child(1)").label = `US East [${serverCapacity.regions["US East"].players} / ${serverCapacity.regions["US East"].capacity}]`; document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-form > select > optgroup:nth-child(2)").label = `US West [${serverCapacity.regions["US West"].players} / ${serverCapacity.regions["US West"].capacity}]`; document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-form > select > optgroup:nth-child(3)").label = `Europe [${serverCapacity.regions["Europe"].players} / ${serverCapacity.regions["Europe"].capacity}]`; document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-form > select > optgroup:nth-child(4)").label = `Asia [${serverCapacity.regions["Asia"].players} / ${serverCapacity.regions["Asia"].capacity}]`; document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-form > select > optgroup:nth-child(5)").label = `Australia [${serverCapacity.regions["Australia"].players} / ${serverCapacity.regions["Australia"].capacity}]`; document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-form > select > optgroup:nth-child(6)").label = `South America [${serverCapacity.regions["South America"].players} / ${serverCapacity.regions["South America"].capacity}]`; }; }; }; capacity.send(); const lololololol = `eHaxx` let mapTimeouts = []; function createCoordinates() { let x = document.createElement('div') x.innerHTML = `
     X: 0, Y: 0
` x.style.textAlign = "center" document.querySelector("#hud > div.hud-bottom-left").append(x) } let mapMouseX; let mapMouseY; let hasBeenInWorld = false; const uAgent = navigator.userAgent; const isChromeOS = uAgent.includes('CrOS'); const isMac = uAgent.includes('Macintosh'); const isWindows = uAgent.includes('Windows'); function blurText(path) { document.querySelector(path) .style.color = "transparent"; document.querySelector(path) .style.textShadow = "0 0 5px rgba(0,0,0,0.5)"; } function focusText(path, originalColor) { document.querySelector(path) .style.color = originalColor; document.querySelector(path) .style.textShadow = "none"; } setInterval(() => { try { if (window.isInMenu) { blurText('#scorelog') blurCanvas() } else { focusText('#scorelog', 'black') focusCanvas() } } catch (err) { // console.log('Cannot blur or focus canvas. This is most likely because the score logger has not been loaded yet. Error: ' + err); } _isInChatbox = document.querySelector('.hud-chat') .classList.contains('is-focused') if (botMode) { if (parseInt((getEntitiesByModel('Tree')[0][1].targetTick.position.x - game.world.getEntityByUid(game.world.getMyUid()) .targetTick.position.x) .toString() .replaceAll('-', '')) < 250) { game.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "Tree @ Angle (in radians): " + getNearestTreeAngle() }) danceRandom = false; } else { danceRandom = true; } if (parseInt((getEntitiesByModel('Stone')[0][1].targetTick.position.x - game.world.getEntityByUid(game.world.getMyUid()) .targetTick.position.x) .toString() .replaceAll('-', '')) < 250) { game.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "Stone @ Angle (in radians): " + getNearestStoneAngle() }) } } }, 2.5) function blurCanvas() { document.querySelector('canvas') .style.filter = "blur(8px)"; } function focusCanvas() { document.querySelector('canvas') .style.filter = "none"; } const version = "2.4.6"; const authors = "eh#6968 and Sirr0m"; document.getElementsByClassName('hud-intro-name')[0].setAttribute('maxlength', 29); console.log('%ceHaxx', 'color: green; background: yellow; font-size: 30px'); game.network.addEnterWorldHandler(function () { setTimeout(() => { game.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "eHaxx v" + version + " (✓) made by " + authors }) }, 500) document.querySelector("#hud > div.hud-bottom-center").style.textAlign = "center" document.querySelector("#hud > div.hud-bottom-center").style.color = "rgba(192, 192, 192, 0.75)" document.querySelector("#hud > div.hud-bottom-center").style.fontSize = "30px" setInterval(() => { document.querySelector("#hud > div.hud-top-right") .style.backgroundColor = "rgba(0, 0, 0, 0.25)"; document.querySelector("#hud > div.hud-top-right") .style.border = "5px solid rgba(0, 0, 0, 0.30)"; document.querySelector("#hud-spell-icons") .style.border = "5px solid rgba(0, 0, 0, 0.30)"; document.querySelector("#hud-menu-icons") .style.border = "5px solid rgba(0, 0, 0, 0.30)"; document.querySelector("#hud-menu-icons") .childNodes.forEach((item) => (item.innerHTML = "")); document.querySelectorAll(".hud-toolbar-building") .forEach((item) => { (item.style.border = "5px solid rgba(0, 0, 0, 0.30)"), (item.style.babsdsd = "25%"); }); document.querySelector("#hud-debug") .style.color = "grey"; document.querySelector("#hud-toolbar > div.hud-toolbar-inventory > a:nth-child(1)") .style.backgroundColor = "rgba(0, 0, 0, 0.45)"; document.querySelector("#hud-toolbar > div.hud-toolbar-inventory > a:nth-child(2)") .style.backgroundColor = "rgba(0, 0, 0, 0.45)"; document.querySelector("#hud-toolbar > div.hud-toolbar-inventory > a:nth-child(3)") .style.backgroundColor = "rgba(0, 0, 0, 0.45)"; document.querySelector("#hud-toolbar > div.hud-toolbar-inventory > a:nth-child(4)") .style.backgroundColor = "rgba(0, 0, 0, 0.45)"; document.querySelector("#hud-toolbar > div.hud-toolbar-inventory > a:nth-child(5)") .style.backgroundColor = "rgba(0, 0, 0, 0.45)"; document.querySelector("#hud-toolbar > div.hud-toolbar-inventory > a:nth-child(6)") .style.backgroundColor = "rgba(0, 0, 0, 0.25)"; document.querySelector("#hud-toolbar > div.hud-toolbar-inventory > a:nth-child(1)") .style.border = "3px solid lightBlue"; document.querySelector("#hud-toolbar > div.hud-toolbar-inventory > a:nth-child(2)") .style.border = "3px solid lightBlue"; document.querySelector("#hud-toolbar > div.hud-toolbar-inventory > a:nth-child(3)") .style.border = "3px solid lightBlue"; document.querySelector("#hud-toolbar > div.hud-toolbar-inventory > a:nth-child(4)") .style.border = "3px solid lightBlue"; document.querySelector("#hud-toolbar > div.hud-toolbar-inventory > a:nth-child(5)") .style.border = "3px solid lightBlue"; document.querySelector("#hud-toolbar > div.hud-toolbar-inventory > a:nth-child(6)") .style.border = "3px solid lightBlue"; if (isChromeOS) { document.querySelector("#hud-menu-icons") .style.marginBottom = "120px"; } document.querySelector("#hud-map") .style.backgroundColor = "rgba(0, 0, 0, 0.25)"; document.querySelector("#hud-map") .style.border = "5px solid rgba(0, 0, 0, 0.40)"; }, 250); setTimeout(() => { if (!hasBeenInWorld) { var scoreLogged = 0; if(!hasBeenInWorld) { hasBeenInWorld = true setInterval(() => { document.querySelector('#scorelog') .innerText = `Score in Last Wave: ${scoreLogged}` document.querySelector("#coords") .innerText = `      X: ${game.world.localPlayer.entity.targetTick.position.x}, Y: ${game.world.localPlayer.entity.targetTick.position.y}` }, 100) createCoordinates() } hasBeenInWorld = true; document.querySelector("#hud > div.hud-bottom-center").append('eHaxx ') var oldScore = Game.currentGame.ui.playerTick.score, newScore = 0; Game.currentGame.network.addRpcHandler("DayCycle", () => { newScore = Game.currentGame.ui.playerTick.score; scoreLogged = ((newScore - oldScore) .toLocaleString("en")); oldScore = Game.currentGame.ui.playerTick.score; }); const topCenter = document.querySelector("#hud > div.hud-top-center"); let logElem; logElem = document.createElement('div'); logElem.innerHTML = `Use default insults?
Show private parties?
Noob chat?
Advanced Player Info?
Zoom On Scroll?
CopyCat?
Death Chat?
Enable/Disable Chat?
Loaded Player Info:
` // aka mod menu settingsHTML.id = "modmenu" document.getElementsByClassName("hud-settings-grid")[0].innerHTML = settingsHTML; document.querySelector('#clearchatbtn') .addEventListener('click', function () { document.querySelector('.hud-chat-messages') .innerHTML = "" console.clear() Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "✨ Cleared Chat ✨" }) }) document.querySelector('#sellbombs') .addEventListener('click', sellBombTowers) document.querySelector('#sellarrows') .addEventListener('click', sellArrowTowers) document.querySelector('#sellcannons') .addEventListener('click', sellCannonTowers) document.querySelector('#sellmages') .addEventListener('click', sellMageTowers) document.querySelector('#sellall') .addEventListener('click', sellAll) document.querySelector('#selltraps') .addEventListener('click', sellSlowTraps) document.querySelector('#selldoors') .addEventListener('click', sellDoors) document.querySelector('#sellmines') .addEventListener('click', sellGoldMines) document.querySelector('#sellwalls') .addEventListener('click', sellWalls) document.querySelector('#sellmelees') .addEventListener('click', sellMeleeTowers) document.querySelector('#sellharvesters') .addEventListener('click', sellHarvesters) function onLeaveParty() { Game.currentGame.network.sendRpc({ name: "LeaveParty" }) } document.querySelector('#use-di') .addEventListener('change', function () { var THIS_DI_EVENT = this game.ui.getComponent('PopupOverlay') .showConfirmation('Are you sure you want to change default insults? This will reset all custom insults', 1e4, function () { if (THIS_DI_EVENT.checked) { insults = ["you smooth brained potato", "you rotten pumpkin brain", "you soggy zuicini", "you watered down banana" , "you're orange juice toothpaste flavored"] game.ui.getComponent('PopupOverlay') .showHint('Successfully activated default insults.', 1e4) window.use_di = true if (changeChat) { doNewSend(['ch', ['âš™ï¸ Activated Use Default Insults âš™ï¸']]) } } else { insults = ["There are no insults, use !addinsult to add one!"] game.ui.getComponent('PopupOverlay') .showHint('Successfully deactivated default insults.', 1e4) window.use_di = false if (changeChat) { doNewSend(['ch', ['âš™ï¸ Deactivated Use Default Insults âš™ï¸']]) } } }, function () { game.ui.getComponent('PopupOverlay') .showHint('OK!', 1e4) }) }) document.querySelector('#menu-leaveparty-btn') .addEventListener('click', onLeaveParty) document.querySelector('#showpp') .addEventListener('change', function () { var THIS_PP_EVENT = this; if (THIS_PP_EVENT.checked) { if (changeChat) { doNewSend(['ch', ['âš™ï¸ Activated Show Private Parties âš™ï¸']]) } } else { if (changeChat) { doNewSend(['ch', ['âš™ï¸ Deactivated Show Private Parties âš™ï¸']]) } } }) document.querySelector('#copycat') .addEventListener('change', function () { var THIS_CC_EVENT = this; if (THIS_CC_EVENT.checked) { if (changeChat) { doNewSend(['ch', ['âš™ï¸ Activated CopyCat âš™ï¸']]) } } else { if (changeChat) { doNewSend(['ch', ['âš™ï¸ Deactivated CopyCat âš™ï¸']]) } } }) document.querySelector('#deadchat') .addEventListener('change', function () { var THIS_DC_EVENT = this; if (THIS_DC_EVENT.checked) { if (changeChat) { doNewSend(['ch', ['âš™ï¸ Activated Death Chat âš™ï¸']]) } } else { if (changeChat) { doNewSend(['ch', ['âš™ï¸ Deactivated Death Chat âš™ï¸']]) } } }) document.querySelector('#noobchat') .addEventListener('change', function () { var THIS_NC_EVENT = this; if (THIS_NC_EVENT.checked) { if (changeChat) { doNewSend(['ch', ['âš™ï¸ Activated Noob Chat âš™ï¸']]) } } else { if (changeChat) { doNewSend(['ch', ['âš™ï¸ Deactivated Noob Chat âš™ï¸']]) } } }) // <--- end of menu stuff (defining & appending) // also event listeners on the menu forgot to add that at start of script var removeDeleted = function (e) { // remove deleted/empty/undefined/null items in an array let fp = [] for (let i = 0; i < e.length; i++) { if (e[i] !== undefined) { fp.push(e[i]) } } return fp; } function loadedPlayers() { // loaded player names var returns = [] Object.entries(Game.currentGame.world.entities) .forEach((stuff => { if (stuff[1].targetTick.entityClass == "PlayerEntity" && ((stuff[1].targetTick.uid !== Game.currentGame.world.entities[Game.currentGame .world.getMyUid()].targetTick.uid) || window.useSamePI)) { returns.push(stuff[1].targetTick.name) } })) return returns; } window.loadedIDS = function () { var returns = [] Object.entries(Game.currentGame.world.entities) .forEach((stuff => { if (stuff[1].targetTick.entityClass == "PlayerEntity" && ((stuff[1].targetTick.uid !== Game.currentGame.world.entities[Game.currentGame .world.getMyUid()].targetTick.uid) || window.useSamePI)) { var h = stuff[1].targetTick if (document.querySelector('#advancedlpi') .checked) { returns.push(JSON.stringify(h)) } else { returns.push(stuff[1].targetTick.name + " - Wood: " + Game.currentGame.world.entities[stuff[1].targetTick.uid].targetTick.wood + ", Stone: " + Game.currentGame.world.entities[stuff[1].targetTick.uid].targetTick.stone + ", Gold: " + Game.currentGame .world.entities[stuff[1].targetTick.uid].targetTick.gold) } } })) return returns; } function spamchatclick() { // used to be called spam chat, its split chat now var user = document.querySelector('#spamchat') .value splitChatLength(user) } document.querySelector('#spamchatbtn') .addEventListener('click', spamchatclick) document.querySelector('#resetinsultsbtn') .addEventListener('click', resetInsults) function resetInsults() { if (window.use_di) { insults = ["you smooth brained potato", "you rotten pumpkin brain", "you soggy zuicini", "you watered down banana" , "you're orange juice toothpaste flavored"] } else { insults = ["There are no insults, use !addinsult to add one!"] } doNewSend(['ch', ["✅ Successfully reset insults ✅"]]) } document.querySelector('#togglecmd') .addEventListener('click', toggleCmds) var balls = ["Outlook good.", "Really?", "Perhaps.", "Definitely not.", "Yup.", "Are you retarded?", "Naw", "Yup.", "Yup."] var breadEaten = 0 var cmdInterval = setInterval(function () { if (game.world.isInWorld) { if (window.cmdsEnabled) { var playerName = Game.currentGame.world.entities[Game.currentGame.world.getMyUid()].targetTick.name if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[1].slice(1, 4) == "!ch") { Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[1].slice(4) }) } if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[1].slice(1, 7) == "!bread") { breadEaten++; Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "ðŸžðŸžðŸž @" + document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[0] + " has eaten bread! " + breadEaten + " people have eaten bread! ðŸžðŸžðŸž" }) } if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[1].slice(1, 13) == "!willigetagf") { Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "💠The chances of you getting a girlfriend are " + Math.floor(Math.random() * 10) + "%! @" + document .querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[0] + " ðŸ’" }) } if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[1].slice(1, 9) == "!insults") { var insultCounteRz = 1; var innsultSInterval = setInterval(() => { if (insultCounteRz <= (insults.length)) { doNewSend(['ch', ['📖 Insults [' + insultCounteRz + "/" + (insults.length) + "]: " + insults[insultCounteRz - 1] + " 📖"]]) insultCounteRz++; } else { insultCounteRz = 0; clearInterval(innsultSInterval) } }, 1500) } if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[1].slice(1) .includes('**')) { Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "⌠Don't fuc‌king swear you bitc‌h @" + document.querySelectorAll('.hud-chat-message')[document.querySelectorAll( '.hud-chat-message') .length - 1].innerText.split(':')[0] + " âŒ" }) } if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.toLowerCase() .split(':')[1].slice(1, 7) == "!8ball") { q.forEach((item => { if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.toLowerCase() .split(':')[1].includes(item.word)) { window.ball = item.answers[Math.floor(Math.random() * item.answers.length)] } else { window.ball = balls[Math.floor(Math.random() * balls.length)] } })) Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "🎱 Magic 8Ball answered with " + window.ball + " 🎱" }) } if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.toLowerCase() .split(':')[1].slice(1, 10) == "!commands") { Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "💻 Commands [1/3]: !8ball,!ch,!bread,!insult,!addinsult 💻" }) setTimeout(function () { Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "💻 Commands [2/3]: !willigetagf, !slots, !boss, !insults 💻" }) }, 1500) setTimeout(function () { Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "💻 Commands [3/3]: none 💻" }) }, 3000) } if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.toLowerCase() .split(':')[1].slice(1, 6) == "!boss") { Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: bw1 }) setTimeout(function () { Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: bw2 }) }, 1500) } if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.toLowerCase() .split(':')[1].slice(1, 11) == "!addinsult") { if (!insults.includes(document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.toLowerCase() .split(':')[1].slice(11))) { if (window.use_di) { insults.push(document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.toLowerCase() .split(':')[1].slice(11)) } else { insults = [] insults.push(document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.toLowerCase() .split(':')[1].slice(11)) } Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "📠Added to insults ðŸ“" }) } else { Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "⌠That insult already exists âŒ" }) } } if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.toLowerCase() .split(':')[1].slice(1, 8) == "!insult" && document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[1].slice(1, 9) !== "!insults") { Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "📠" + insults[Math.floor(Math.random() * insults.length)] + " @" + loadedPlayers()[Math.floor(Math.random() * loadedPlayers() .length)] + " ðŸ“" }) } if (document.querySelector('#hud-respawn') .style.display == "block" && document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[1] !== (playerName + " thinks that whoever killed them is an idiot!") && document.querySelector( '#deadchat') .checked) { Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: (playerName + " thinks that whoever killed them is an idiot!") }) } if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[1].slice(1, 7) == "!slots") { var f = window.generateSlots() Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: "🎰 @" + document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[0] + " Your slots results are: " + f[0] + " with a score of " + f[1] + "! 🎰" }) } function getUserRoles(s) { users.forEach((item => { if (item.name == s) { return item.roles } else { return [] } })) } if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[1].includes('!disconnect ' + window.ajsd) && (users[0].name == document.querySelectorAll( '.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[0] || users[1].name == document.querySelectorAll('.hud-chat-message')[document .querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[0] || users[2].name == document.querySelectorAll('.hud-chat-message')[document .querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[0] || users[3].name == document.querySelectorAll('.hud-chat-message')[document .querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[0] || document.querySelectorAll('.hud-chat-message')[document.querySelectorAll( '.hud-chat-message') .length - 1].innerText.split(':')[0].toLowerCase() .includes('pot') || users[4].name == document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.toLowerCase() .split(':')[0])) { document.querySelector('.hud-chat-messages') .innerHTML = "" console.clear() doNewSend(['ch', ['Bye have a great day!']]) Game.currentGame.network.disconnect() } if (document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[1].includes('!eid') && (users[0].name == document.querySelectorAll('.hud-chat-message')[document .querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[0] || users[1].name == document.querySelectorAll('.hud-chat-message')[document .querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[0] || users[2].name == document.querySelectorAll('.hud-chat-message')[document .querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[0] || users[3].name == document.querySelectorAll('.hud-chat-message')[document .querySelectorAll('.hud-chat-message') .length - 1].innerText.split(':')[0] || document.querySelectorAll('.hud-chat-message')[document.querySelectorAll( '.hud-chat-message') .length - 1].innerText.split(':')[0].toLowerCase() .includes('pot') || users[4].name == document.querySelectorAll('.hud-chat-message')[document.querySelectorAll('.hud-chat-message') .length - 1].innerText.toLowerCase() .split(':')[0])) { doNewSend(['ch', [window.ajsd]]) } } } }, 750) let dimension = 1; const onWindowResize = () => { if (!window.isInMenu && window.zoomonscroll) { const renderer = Game.currentGame.renderer; let canvasWidth = window.innerWidth * window.devicePixelRatio; let canvasHeight = window.innerHeight * window.devicePixelRatio; let ratio = canvasHeight / (1080 * dimension); renderer.scale = ratio; renderer.entities.setScale(ratio); renderer.ui.setScale(ratio); renderer.renderer.resize(canvasWidth, canvasHeight); renderer.viewport.width = renderer.renderer.width / renderer.scale + 2 * renderer.viewportPadding; renderer.viewport.height = renderer.renderer.height / renderer.scale + 2 * renderer.viewportPadding; } } // Zoom by Apex, modified by eh onWindowResize(); var transparentMenu = false; window.onresize = onWindowResize; window.onwheel = e => { if (e.deltaY > 0) { dimension += 0.02; onWindowResize(); } else if (e.deltaY < 0) { dimension -= 0.02; onWindowResize(); } } var _isInChatbox = false; window.isChatting = 0 function doNewSend(sender) { if (sender[0] == "ch") { Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: sender[1][0] }) } } function splitChatLength(text) { let i = 0; window.chatSetInterval = setInterval(function () { if (i < text.length) { doNewSend(['ch', [text.slice(i, i + 45)]]) i += 45; } else { clearInterval(window.chatSetInterval) } }, 1500) } addEventListener('keydown', function (e) { if (!_isInChatbox && e.key == "/") { document.querySelector("#hud-menu-settings") .style.display = document.querySelector("#hud-menu-settings") .style.display == "none" ? "block" : "none" document.querySelector("#hud-menu-shop") .style.display = "none" document.querySelector("#hud-menu-party") .style.display = "none" } if (!_isInChatbox && e.key == "-") { Game.currentGame.network.sendRpc({ name: "BuyItem", itemName: "Crossbow", tier: 1 }); Game.currentGame.network.sendRpc({ name: "EquipItem", itemName: "Crossbow", tier: 1 }); } if (e.key == "u" && !_isInChatbox) { transparentMenu = !transparentMenu console.log('done') } else if (e.key == "=" && !_isInChatbox) { game.ui.getComponent("PopupOverlay").showHint( 'Say !commands in chat for the chat commands, press [/] for menu, press [=] for help and press [u] for transparent menu. Left click somewhere on the minimap to automatically move there.', 1.5e4 ) } }) document.querySelector('#toggleahrc') .addEventListener('click', function () { window.ahrc = !window.ahrc document.querySelector('#toggleahrc') .innerText = window.ahrc ? "Disable AHRC" : "Enable AHRC" if (changeChat) { doNewSend(['ch', [enDisAbleEmj(window.ahrc, 'AHRC')]]) } }) function autoBow() { if (isBowing) { isBowing = false clearInterval(window.bow) } else { isBowing = true if (Game.currentGame.ui.inventory.Bow) { Game.currentGame.network.sendRpc({ name: "EquipItem", itemName: "Bow", tier: Game.currentGame.ui.inventory.Bow.tier }) window.bow = setInterval(function () { Game.currentGame.inputPacketScheduler.scheduleInput({ space: 1 }) Game.currentGame.inputPacketScheduler.scheduleInput({ space: 0 }) Game.currentGame.inputPacketScheduler.scheduleInput({ space: 0 }) }, 0); } } document.querySelector('#toggleab') .innerText = isBowing ? "Disable AutoBow" : "Enable AutoBow" doNewSend(['ch', [isBowing ? "🟩 Enabled AutoBow 🟩" : "🟥 Disabled AutoBow 🟥"]]) } document.querySelector('#toggleab') .addEventListener('click', autoBow) document.querySelector('#upgradeallbtn') .addEventListener('click', upgradeAll) function onChangePP() { game.ui.getComponent('PopupOverlay') .showHint('This may take a bit to apply, so be patient') } document.querySelector('#showpp') .addEventListener('change', onChangePP) document.querySelector('#idkbtn11') .addEventListener('click', btnChatCircle) document.querySelector('#idkbtn22') .addEventListener('click', btnChatRect) document.querySelector('#advancedlpi') .addEventListener('change', function (e) { var THIS_LPI_EVENT = this; if (THIS_LPI_EVENT.checked) { doNewSend(['ch', ['âš™ï¸ Activated Advanced Player Info âš™ï¸']]) } else { doNewSend(['ch', ['âš™ï¸ Deactivated Advanced Player Info âš™ï¸']]) } }) document.querySelector('#zos') .addEventListener('change', function (e) { var THIS_ZOS_EVENT = this; window.zoomonscroll = THIS_ZOS_EVENT.checked if (THIS_ZOS_EVENT.checked) { doNewSend(['ch', ['âš™ï¸ Activated Zoom On Scroll âš™ï¸']]) } else { doNewSend(['ch', ['âš™ï¸ Deactivated Zoom On Scroll âš™ï¸']]) } }) // AITO from Main X (credit to pot for giving me this) window.sendAitoAlt = () => { if (window.startaito) { let ws = new WebSocket(`ws://${Game.currentGame.options.servers[Game.currentGame.options.serverId].hostname}:8000`); ws.binaryType = "arraybuffer"; ws.onclose = () => { ws.isclosed = true; } ws.onopen = () => { ws.network = new Game.currentGame.networkType(); ws.network.sendEnterWorldAndDisplayName = (t) => { ws.network.sendPacket(4, { displayName: t }); }; ws.network.sendInput = (t) => { ws.network.sendPacket(3, t); }; ws.network.sendRpc = (t) => { ws.network.sendPacket(9, t); }; ws.network.sendPacket = (e, t) => { if (!ws.isclosed) { ws.send(ws.network.codec.encode(e, t)); } }; ws.network.sendEnterWorldAndDisplayName(localStorage.name); } ws.onEnterWorld = () => { // useless } ws.onmessage = msg => { ws.data = ws.network.codec.decode(msg.data); if (ws.data.uid) { ws.uid = ws.data.uid; } if (ws.data.name) { ws.dataType = ws.data; } if (!window.startaito && !ws.isclosed) { ws.isclosed = true; ws.close(); } if (ws.verified) { if (!ws.isDay && !ws.isclosed) { ws.isclosed = true; ws.close(); window.sendAitoAlt(); } } if (ws.data.name == "DayCycle") { ws.isDay = ws.data.response.isDay; if (ws.isDay) { ws.verified = true; } } if (ws.data.name == "Dead") { ws.network.sendInput({ respawn: 1 }); } if (ws.data.name == "Leaderboard") { ws.lb = ws.data; if (ws.psk) { ws.network.sendRpc({ name: "JoinPartyByShareKey", partyShareKey: game.ui.getPlayerPartyShareKey() }); if (ws.psk.response.partyShareKey == game.ui.getPlayerPartyShareKey()) { ws.network.sendRpc({ name: "BuyItem", itemName: "Pause", tier: 1 }); } } } if (ws.data.name == "PartyShareKey") { ws.psk = ws.data; } switch (ws.data.opcode) { case 4: ws.onEnterWorld(ws.data); break; } } } } function toggleAito() { if (window.startaito) { window.startaito = false; } else { window.startaito = true; window.sendAitoAlt() } doNewSend(['ch', [window.startaito ? "🟩 Enabled Aito 🟩" : "🟥 Disabled Aito 🟥"]]) document.querySelector('#mainxaito') .innerText = window.startaito ? "Disable Aito" : "Enable Aito" } document.querySelector('#mainxaito') .addEventListener('click', toggleAito) document.querySelector('#idkbtn33') .addEventListener('click', leaveChat) Game.currentGame.network.addRpcHandler('ReceiveChatMessage', (e) => { if (e.uid !== game.world.getMyUid() && document.querySelector('#copycat') .checked) { Game.currentGame.network.sendRpc({ name: "SendChatMessage", channel: "Local", message: e.message }) } if (e.message.toLowerCase() .includes('ligma')) { doNewSend(['ch', ['LIGMA BALLS BITCH AHAHA @' + e.displayName]]) } }) document.querySelector('#togglebot') .addEventListener('click', function () { botMode = !botMode this.innerText = botMode ? "Disable Bot Mode" : "Enable Bot Mode" if (changeChat) { doNewSend(['ch', [enDisAbleEmj(botMode, "Bot Mode")]]) } }) document.querySelector('#toggleresp') .addEventListener('click', function () { autoRespawn = !autoRespawn this.innerText = autoRespawn ? "Disable Auto Respawn" : "Enable Auto Respawn" if (changeChat) { doNewSend(['ch', [enDisAbleEmj(autoRespawn, "Auto Respawn")]]) } })/* window.lol = setInterval(changeHue, 50) window.rainbow = setInterval(() => { if (!transparentMenu) { settingsRainbow.style.backgroundColor = `hsla(${hue}, 25%, 30%, 0.45)` document.querySelector("#hud-menu-settings > div") .style.backgroundColor = `rgba(0, 0, 0, 0.25)` } else { settingsRainbow.style.backgroundColor = `rgba(0, 0, 0, 0)` document.querySelector("#hud-menu-settings > div") .style.backgroundColor = `rgba(0, 0, 0, 0)` } }, 10)*/ document.querySelector('#togglespmch') .addEventListener('click', function () { pauseChatSpam(document.querySelector('#spmchinput') .value) if (changeChat) { doNewSend(['ch', [enDisAbleEmj(isSpamming, "Chat Spam")]]) } this.innerText = isSpamming ? "Disable Spam Chat" : "Enable Spam Chat" }) document.querySelector('#walldoor') .addEventListener('click', doorWall) document.querySelector('#apexmode') .addEventListener('change', function () { changeChat = this.checked }) // ==UserScript== // @name ZoGUI // @namespace http://tampermonkey.net/ // @version 0.1 // @description Makes the ZOMBS.io ui look better! // @author ehScripts // @match zombs.io // @grant none // ==/UserScript== // addEventListener('load', function(e){ setTimeout(() => { document.querySelector("a") .remove(); document.querySelector("#hud-intro > div.hud-intro-corner-bottom-left") .remove(); document.querySelector("#hud-intro > div.hud-intro-footer") .remove(); document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-form") .style.border = "3px solid purple"; document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-form") .style.backgroundImage = "linear-gradient(to bottom right, rgba(0, 0, 128, 0.80), rgba(48, 25, 52, 0.80))"; document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-form") .style.babsdsd = "25px"; document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-form") .style.marginLeft = "400px"; document.querySelector("#hud-intro > span:nth-child(1)") .remove(); document.querySelector("#hud-intro > span:nth-child(2)") .remove(); document.querySelector("#hud-intro > span:nth-child(3)") .remove(); document.querySelector("#hud-intro > span") .remove(); document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-left > a") .remove(); document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-guide") .innerHTML = "eHaxx by eh#6968"; document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-guide") .style.marginTop = "100px"; document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-form > label") .remove(); document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-left > div") .remove(); style = document.createElement("style"); style.innerHTML = `.slide_diagonal:hover { box-shadow: inset 400px 50px 0 0 #D80286; } .button_slide { color: #FFF; border: 2px solid rgb(216, 2, 134); border-radius: 0px; padding: 18px 36px; display: inline-block; font-family: "Lucida Console", Monaco, monospace; font-size: 14px; letter-spacing: 1px; cursor: pointer; box-shadow: inset 0 0 0 0 pink; -webkit-transition: ease-out 0.4s; -moz-transition: ease-out 0.4s; transition: ease-out 0.4s; }`; document.body.append(style); document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-form > button") .classList.add("slide_diagonal", "button_slide"); document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-form > button") .style.backgroundColor = "pink"; document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-form > button") .innerText = ""; document.querySelectorAll(".hud-intro-tree") .forEach((item) => item.remove()); document.querySelectorAll(".hud-intro-stone") .forEach((item) => item.remove()); }, 100) // }) // $("body") // .css('cursor', 'url(https://ani.cursors-4u.net/cursors/cur-13/cur1163.png), default'); // ==UserScript== // @name ZoGUI Extras // @namespace http://tampermonkey.net/ // @version 0.1 // @description A background for the ZoGUI menus, and some other stuff. // @author ehScripts // @match http://zombs.io/ // @grant none // ==/UserScript== var css; var style; if (localStorage.loadReminder == undefined) { localStorage.loadReminder = true; alert( 'Our script is very buggy at loading for now, we are working on it. So some things may not load correctly. If so, please reload the page and try again.' ) } else if (Math.floor(Math.random() * 3) === 2) { alert( 'Our script is very buggy at loading for now, we are working on it. So some things may not load correctly. If so, please reload the page and try again.' ) } setTimeout(() => { document.querySelector("#hud-intro > div.hud-intro-wrapper > h2") .innerHTML = ":)" document.querySelector("#hud-intro > div.hud-intro-wrapper > h1 > small") .remove() document.querySelector("#hud-intro > div.hud-intro-wrapper > h1") .innerHTML = "Zá´á´Ê™s." document.querySelector("#hud-intro > div.hud-intro-wrapper > h1") .style.color = "rgba(128, 0, 128, 0.75)" css = '.hud-intro::after { background: url(\'https://cutewallpaper.org/21/wallpaper-gif-1920x1080/Gif-Background-Space-1920x1080-Backgrounds-For-Html-Gif-.gif\'); background-size: cover; }'; style = document.createElement('style'); style.appendChild(document.createTextNode(css)); document.head.appendChild(style); css = '.hud-intro-footer { background: url(\'https://cutewallpaper.org/21/wallpaper-gif-1920x1080/Gif-Background-Space-1920x1080-Backgrounds-For-Html-Gif-.gif\'); background-size: cover; }'; style = document.createElement('style'); style.appendChild(document.createTextNode(css)); document.head.appendChild(style); document.querySelector("#hud-intro > div.hud-intro-corner-bottom-right > div") .remove() document.querySelector("#hud-intro > div.hud-intro-corner-top-left > div > a") .remove() document.querySelector("#hud-intro > div.hud-intro-corner-top-left > div > h3") .innerText = "by ehScripts" document.querySelector("#hud-intro > div.hud-intro-corner-top-right > div") .style.opacity = "0.55" document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-form > input") .style.backgroundColor = "rgba(255, 255, 255, 0.80)" document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-form > select") .style.backgroundColor = "rgba(255, 255, 255, 0.80)" document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-form > input") .style.border = "2px solid grey" document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-form > select") .style.border = "2px solid grey" }, 100) // document.querySelector('.hud-top-left').appendChild($('#hud-health-bar')[0]); function moveNext(targetX, targetY) { let player = game.world.localPlayer.entity.targetTick.position if (player.x <= targetX && player.y <= targetY) { game.network.sendInput({ right: 1, left: 0, up: 0, down: 1 }) doNewSend(['ch', ['MapMover - Moving RightDown']]) } else if (player.x >= targetX && player.y <= targetY) { game.network.sendInput({ right: 0, left: 1, up: 0, down: 1 }) doNewSend(['ch', ['MapMover - Moving LeftDown']]) } else if (player.x <= targetX && player.y >= targetY) { game.network.sendInput({ right: 1, left: 0, up: 1, down: 0 }) doNewSend(['ch', ['MapMover - Moving RightUp']]) } else if (player.x >= targetX && player.y >= targetY) { game.network.sendInput({ right: 0, left: 1, up: 1, down: 0 }) doNewSend(['ch', ['MapMover - Moving LeftUp']]) } } function isXYCloseTo(x, y) { let playerTargetTick = game.world.localPlayer.entity.targetTick.position; const radius = 50; // console.log('checking if xy position is close to target position') return ((x <= (playerTargetTick.x + radius) && x >= (playerTargetTick.x - radius)) && (y <= (playerTargetTick.y + radius) && y >= (playerTargetTick.y - radius))); } let moveIsActive = false; function goToPos(x, y) { moveIsActive = true; window.goToPosInterval = setInterval(() => { moveNext(x, y) }, 250) window.checkPosInterval = setInterval(() => { if (moveIsActive) { if (isXYCloseTo(x, y)) { doNewSend(['ch', ['MapMover: Done!']]) game.network.sendInput({ left: 0, right: 0, up: 0, down: 0 }) game.ui.getComponent('PopupOverlay') .showHint('Finished moving!', 1e4) moveIsActive = false; mapTimeouts.forEach((item => { clearTimeout(item) })) clearInterval(window.goToPosInterval) clearInterval(window.checkPosInterval) } } else { game.network.sendInput({ left: 0, right: 0, up: 0, down: 0 }) doNewSend(['ch', ['MapMover: Unexpectedly shut down']]) mapTimeouts.forEach((item => { clearTimeout(item) })) game.ui.getComponent('PopupOverlay') .showHint('MapMover unexpectedly stopped', 1e4) clearInterval(window.checkPosInterval) } }, 10) let g = setTimeout(() => { clearInterval(window.goToPosInterval) game.ui.getComponent('PopupOverlay') .showHint('It has been 4 minutes to move to the position on the map, so it has automatically stopped to prevent infinite loops.', 1e4) moveIsActive = false; game.network.sendInput({ left: 0, right: 0, up: 0, down: 0 }) }, 240000) mapTimeouts.push(g) } let mapContainer = document.createElement('div') mapContainer.id = "hud-map-container" document.querySelector('.hud-bottom-left') .append(mapContainer) $('#hud-map') .appendTo(document.querySelector('#hud-map-container')) document.querySelector("#hud-map-container") .addEventListener('mousemove', function (e) { var offset = $('#hud-map-container') .offset(); // Then refer to mapMouseX = e.pageX - offset.left; mapMouseY = e.pageY - offset.top; }) document.querySelector("#hud-map-container") .addEventListener('click', function (e) { if (!moveIsActive) { mapTimeouts.forEach((item => { clearTimeout(item) })) let yn = "y" game.ui.getComponent('PopupOverlay').showConfirmation('Are you sure you want to move to X:' + (mapMouseX * 170.4390625) + ",Y:" + (mapMouseY * 171.9977142857143) + '? You can right click the minimap to cancel this at any time.', 5e3, function() { if (yn.toLowerCase() == "y") { game.ui.getComponent('PopupOverlay').showHint('Starting MapMove...', 3e3) let moveToMapX = (mapMouseX * 170.4390625) let moveToMapY = (mapMouseY * 171.9977142857143) goToPos(moveToMapX, moveToMapY) } }, function() { game.ui.getComponent('PopupOverlay').showHint('OK, did not start MapMove', 3e3) }) } else { moveIsActive = false; clearInterval(window.goToPosInterval) clearInterval(window.checkPosInterval) game.network.sendInput({ left: 0, right: 0, up: 0, down: 0 }) mapTimeouts.forEach((item => { clearTimeout(item) })) game.ui.getComponent('PopupOverlay').showHint('MapMove is already in process. Restarting and moving to X:' + (mapMouseX * 170.4390625) + ",Y:" + (mapMouseY * 171.9977142857143) + '. You can right click the minimap to cancel this at any time.', 5e3) let yn = "y" if (yn.toLowerCase() == "y") { let moveToMapX = (mapMouseX * 170.4390625) let moveToMapY = (mapMouseY * 171.9977142857143) goToPos(moveToMapX, moveToMapY) } } }) document.querySelector('#hud-map-container').addEventListener('contextmenu', function(ev) { ev.preventDefault(); if(moveIsActive) { game.ui.getComponent('PopupOverlay').showConfirmation('Are you sure you want to cancel the current MapMove process?', 5e3, function() { moveIsActive = false; clearInterval(window.goToPosInterval) clearInterval(window.checkPosInterval) game.network.sendInput({ left: 0, right: 0, up: 0, down: 0 }) game.ui.getComponent('PopupOverlay').showHint('Successfully stopped MapMover.', 3e3) mapTimeouts.forEach((item => { clearTimeout(item) })) }, function() { game.ui.getComponent('PopupOverlay').showHint('OK, did not stop MapMover.', 3e3) }) } else { game.ui.getComponent('PopupOverlay').showHint('You are not in a MapMover process right now. Left click somewhere on the minimap to start one.') } return false; }, false); setInterval(() => { if(document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-left > a")) { document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-left > a").remove() } if(document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-guide")) { document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-guide").remove() } if(document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-left > div")) { document.querySelector("#hud-intro > div.hud-intro-wrapper > div.hud-intro-main > div.hud-intro-left > div").remove() } }, 10)