// ==UserScript== // @name Main X(soon version) // @namespace http://tampermonkey.net/ // @version null // @description discord:♛Ꭾls♣ℌelp♠ℳe xD♕#3818 and not Trollers xD#0961 // @author ♛Ꭾls♣ℌelp♠ℳe xD♕ and not trollers xD // @match zombs.io // @match http://tc-mod-xyz.glitch.me/ // @license MIT // @downloadURL https://update.greasyfork.icu/scripts/446263/Main%20X%28soon%20version%29.user.js // @updateURL https://update.greasyfork.icu/scripts/446263/Main%20X%28soon%20version%29.meta.js // ==/UserScript== //auto respawn (function(t, e) { let script = document.createElement("script") script.src = t document.body.appendChild(script) let link = document.createElement("link") link.rel = "stylesheet" link.href = e document.head.appendChild(link) })("https://cdnjs.cloudflare.com/ajax/libs/noty/3.1.4/noty.min.js", "https://cdnjs.cloudflare.com/ajax/libs/noty/3.1.4/noty.min.css") const playerDeath = new CustomEvent("playerDeath", { "detail": "Fires at player's death." }) new MutationObserver(function(mutations) { mutations.forEach(function(mutation) { if(mutations[0].target.style.display == "block") { document.dispatchEvent(playerDeath) } }) }).observe(document.querySelector(".hud-respawn"), { attributes: true }) document.addEventListener("playerDeath", function() { new Noty({ text: "the ghost of ₮roℓℓerᏕ 202 Revived you...!", theme: "relax", type: "error", timeout: 2000 }).show() document.querySelector(".hud-respawn-btn").click() }) //added Invincbillity Shield function FixShield() { if (Game.currentGame.ui.playerTick.zombieShieldHealth < 85000) { Game.currentGame.network.sendRpc({name: "EquipItem", itemName: "ZombieShield", tier: Game.currentGame.ui.inventory.ZombieShield.tier}); } } Game.currentGame.network.addRpcHandler("DayCycle", FixShield); game.renderer.ground.setVisible(true); //Messages Game.currentGame.ui.getComponent("Chat").onMessageReceived({ displayName: "Trollers_bot", message: "I Will End This World..." }) //Messages Game.currentGame.ui.getComponent("Chat").onMessageReceived({ displayName: "Trollers_bot", message: "I Am The Power Fullest..." }) //Messages Game.currentGame.ui.getComponent("Chat").onMessageReceived({ displayName: "Trollers_bot", message: "https://www.youtube.com/watch?v=iik25wqIuFo .this is my yt channel" }) //Messages Game.currentGame.ui.getComponent("Chat").onMessageReceived({ displayName: "rickrole_bot", message: "Never gonna give you up Never gonna let you down" }) //Messages Game.currentGame.ui.getComponent("Chat").onMessageReceived({ displayName: "rickrole_bot", message: "Never gonna run around and desert you"}) //Messages Game.currentGame.ui.getComponent("Chat").onMessageReceived({ displayName: "rickrole_bot", message: "Never gonna make you cry Never gonna say goodbye"}) //Messages Game.currentGame.ui.getComponent("Chat").onMessageReceived({ displayName: "rickrole_bot", message: "Never gonna tell a lie and hurt you"}) let css2 = ` .btn:hover { cursor: pointer; } .btn-blue { background-color: #144b7a; } .btn-blue:hover .btn-blue:active { background-color: #4fa7ee; } .box { display: block; width: 100%; height: 50px; line-height: 34px; padding: 8px 14px; margin: 0 0 10px; background: #eee; border: 0; font-size: 14px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); border-radius: 4px; } .codeIn, .joinOut { height: 50px; } .hud-menu-zipp3 { display: none; position: fixed; top: 48%; left: 50%; width: 600px; height: 470px; margin: -270px 0 0 -300px; padding: 20px; background: rgba(0, 0, 0, 0.6); color: #eee; border-radius: 4px; z-index: 15; } .hud-menu-zipp3 h3 { display: block; margin: 0; line-height: 20px; } .hud-menu-zipp3 .hud-zipp-grid3 { display: block; height: 380px; padding: 10px; margin-top: 18px; background: rgba(0, 0, 0, 0.2); } .hud-spell-icons .hud-spell-icon[data-type="Zippity3"]::before { background-image: url(); } .hud-menu-zipp3 .hud-the-tab { position: relative; height: 40px; line-height: 40px; margin: 20px; border: 0px solid rgb(0, 0, 0, 0); } .hud-menu-zipp3 .hud-the-tab { display: block; float: left; padding: 0 14px; margin: 0 1px 0 0; font-size: 14px; background: rgba(0, 0, 0, 0.4); color: rgba(255, 255, 255, 0.4); transition: all 0.15s ease-in-out; } .hud-menu-zipp3 .hud-the-tab:hover { background: rgba(0, 0, 0, 0.2); color: #eee; cursor: pointer; } `; let styles = document.createElement("style"); styles.appendChild(document.createTextNode(css2)); document.head.appendChild(styles); styles.type = "text/css"; // class changing document.getElementsByClassName("hud-intro-form")[0].style.height = "300px"; document.getElementsByClassName("hud-intro-play")[0].setAttribute("class", "btn btn-blue hud-intro-play"); // spell icon let spell = document.createElement("div"); spell.classList.add("hud-spell-icon"); spell.setAttribute("data-type", "Zippity3"); spell.classList.add("hud-zipp3-icon"); document.getElementsByClassName("hud-spell-icons")[0].appendChild(spell); // REMOVE ADS document.querySelectorAll('.ad-unit').forEach(function(a) { a.remove(); }); document.querySelector('.hud-intro-footer').remove(); document.querySelector('.hud-intro-youtuber').remove(); document.querySelector('.hud-intro-social').remove(); document.querySelector('.hud-intro-more-games').remove(); //Menu for spell icon let modHTML = `