// ==UserScript== // @name Incidia // @namespace http://tampermonkey.net/ // @version 1.0 // @description Mod for Zombs with many feature // @author (vn) Incognito_guy // @match http://zombs.io/ // @grant none // @license MIT // @downloadURL https://update.greasyfork.icu/scripts/435571/Incidia.user.js // @updateURL https://update.greasyfork.icu/scripts/435571/Incidia.meta.js // ==/UserScript== //afs 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); //Screenshot mode window.addEventListener("keydown", e => { switch (e.keyCode) { case 27: var mb = document.getElementsByClassName("hud")[0]; if (mb.style.display === "none") { mb.style.display = "block"; } else { mb.style.display = "none"; } break; } }) //zoom let dimension = 1; const onWindowResize = () => { const renderer = Game.currentGame.renderer; let canvasWidth = window.innerWidth * window.devicePixelRatio; let canvasHeight = window.innerHeight * window.devicePixelRatio; let ratio = Math.max(canvasWidth / (1920 * dimension), 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; } onWindowResize(); window.onresize = onWindowResize; window.onwheel = e => { if (e.deltaY > 0) { dimension = Math.min(1.35, dimension + 0.01); onWindowResize(); } else if (e.deltaY < 0) { dimension = Math.max(0.1, dimension - 0.01); onWindowResize(); } } // Name Stuff var IntroGuide = ''; IntroGuide += "

Zombs.io Nicknames

"; IntroGuide += ""; IntroGuide += "

"; IntroGuide += ""; IntroGuide += "

"; IntroGuide += ""; IntroGuide += "

"; document.getElementsByClassName('hud-intro-guide')[0].innerHTML = IntroGuide; // NICKNAMES window.name21 = function() { document.getElementsByClassName('hud-intro-name')[0].value = 'Sup'; }; window.name23 = function() { document.getElementsByClassName('hud-intro-name')[0].value = '(vn)Incognito_guy'; }; window.name22 = function() { document.getElementsByClassName('hud-intro-name')[0].value = 'ƊαrƙɳeՏՏ'; }; //Information Stuff var hudintrocornerbottomleft = ''; hudintrocornerbottomleft += "

More Information

"; hudintrocornerbottomleft += " "; document.getElementsByClassName('hud-intro-corner-bottom-left')[0].innerHTML = hudintrocornerbottomleft; //AdBlocker document.querySelectorAll('.ad-unit').forEach(function(a) { a.remove(); }); //To clean up ui document.querySelectorAll('.ad-unit, .hud-intro-left, .hud-intro-wrapper > h2, .hud-intro-form > label, .hud-intro-stone, .hud-intro-tree, .hud-intro-corner-bottom-left, .hud-intro-corner-bottom-right').forEach(el => el.remove()); document.getElementsByClassName("hud-intro-form")[0].setAttribute("style", "width: 280px; height: 280px; margin-top: 24px; background-color: rgb(0.0, 0.0, 0.0, 0.0);"); document.getElementsByClassName("hud-intro-guide")[0].setAttribute("style", "width: 280px; height: 280px; margin-top: 8px; background-color: rgb(0.0, 0.0, 0.0, 0.0);"); document.getElementsByClassName("hud-intro-wrapper")[0].childNodes[1].innerHTML = `
Zombs.io Incidia`; let igText = document.getElementsByTagName("font")[0]; igText.style.textTransform = "none"; document.getElementsByClassName("hud-intro-play")[0].setAttribute("class", "btn btn-black hud-intro-play"); var Style1 = document.querySelectorAll('.hud-intro-name, .hud-intro-main, .hud-intro-server, .hud-intro-play');for (let i = 0; i < Style1.length; i++) { Style1[i].style.border = "3px solid #000000"; } //Backround Stuff let sm = document.querySelector("#hud-menu-settings"); sm.style.backgroundColor = " rgba(0, 0, 0, 0.72)"; sm.style.border = "5px solid black"; sm.innerHTML = `