Nukoi Mod

Save Zombs frm 𝚝𝚘𝚡𝚒𝚌𝚒𝚝𝚢

  1. // ==UserScript==
  2. // @name Nukoi Mod
  3. // @namespace http://tampermonkey.net/
  4. // @version 1
  5. // @description Save Zombs frm 𝚝𝚘𝚡𝚒𝚌𝚒𝚝𝚢
  6. // @author Nukoi
  7. // @match http://zombs.io/
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. document.getElementsByClassName("hud-intro-form")[0].setAttribute("style", "margin-bottom: 12.75px; width: auto; height: auto; padding: 25px;");
  12. document.getElementsByClassName("hud-menu-party")[0].setAttribute("style", "width: 610px; height: 465px;");
  13. document.getElementsByClassName('hud-party-tag')[0].setAttribute('maxlength', 49);
  14. document.getElementsByClassName('hud-intro-name')[0].setAttribute('maxlength', 29);
  15. document.getElementsByClassName("hud-intro-play")[0].classList.add("btn-purple");
  16. document.getElementsByClassName("hud-intro-wrapper")[0].childNodes[1].innerHTML = `<h1>ℤ𝕠𝕞𝕓𝕤.𝕚𝕠<h1>`;
  17. document.getElementsByClassName("hud-intro-footer")[0].innerHTML = `<h3><font size="36">𝚆𝙷𝚘𝚣𝙽𝚞𝚔𝚘𝚒 𝚟𝟸</font></h3>`;
  18. document.getElementsByClassName("hud-intro-youtuber")[0].innerHTML = `<h3>Featured YouTuber:</h3><a href="https://www.youtube.com/channel/UCfmI3I08wnqGGhcnIzEMXBA" target="_blank">WhozNukoi_</a>`;
  19. document.querySelectorAll('.ad-unit, .hud-intro-left, .hud-intro-guide, .hud-intro-form > label, .hud-intro-stone, .hud-intro-tree, .hud-intro-corner-bottom-left, .hud-intro-corner-bottom-right').forEach(el => el.remove());
  20.  
  21. let change = document.createElement("BUTTON");
  22. change.className = "btn btn-purple";
  23. change.id = "change";
  24. change.style = "width: 100%; height: 50px; margin-top: 3%;";
  25. change.innerHTML = "𝚢𝚘𝚞𝚝𝚞𝚋𝚎 𝚌𝚑𝚊𝚗𝚗𝚎𝚕";
  26. document.getElementsByClassName("hud-intro-form")[0].insertBefore(change, document.getElementsByClassName("hud-intro-error")[0]);
  27. document.getElementById("change").onclick = () => {
  28. window.open('https://www.youtube.com/channel/UCfmI3I08wnqGGhcnIzEMXBA');
  29. }
  30.  
  31. var entities = Game.currentGame.world.entities;
  32. var Style2 = document.querySelectorAll('.hud-map, .hud-party-link, .hud-menu-party, .hud-resources, .hud-menu, .hud-menu-icon, .hud-intro-left, .hud-menu-shop, .hud-menu-settings, .hud-shop-grid .hud-shop-item, .hud-settings-grid, .hud-party-grid, .hud-party-members, .hud-toolbar-item, .hud-toolbar-building, .hud-menu-icon, .hud-spell-icon, .hud-intro-form, .hud-intro-guide, .hud-intro-name, .hud-intro-server, .hud-chat-input');
  33. for (let i = 0; i < Style2.length; i++) {
  34. Style2[i].style.borderRadius = '2em'; // standard
  35. Style2[i].style.MozBorderRadius = '2em'; // Mozilla
  36. Style2[i].style.WebkitBorderRadius = '2em'; // WebKitww
  37. Style2[i].style.border = "0.22em solid #9933CC";
  38. Style2[i].style.outline = "none";
  39. }
  40.  
  41. let style = document.createTextNode(`
  42. .hud-intro::before {
  43. background-image: url('https://i.pinimg.com/originals/bd/a9/df/bda9dfd72e4a3e9a9c41c64a08a3a362.gif'); background-size-1920x1080: cover; }';
  44. background-size: cover;
  45. }
  46. .hud-menu-shop {
  47. width: 625px;
  48. height: 465px;
  49. margin: -270px 0 0 -312.2em;
  50. padding: 20px;
  51. }
  52. ::-webkit-scrollbar-track {
  53. -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  54. border-radius: 2em;
  55. background-color: #9933CC;
  56. }
  57. ::-webkit-scrollbar {
  58. width: 12px;
  59. height: 0px;
  60. border-radius: 2em;
  61. background-color: #9933CC;
  62. }
  63. ::-webkit-scrollbar-thumb {
  64. border-radius: 2em;
  65. -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
  66. background: linear-gradient(to bottom right, #9933CC, #9933CC 80%);
  67. }
  68. .btn-#9933CC {
  69. background: linear-gradient(to top right, #9933CC, #9933CC 80%);
  70. color: white;
  71. border-radius: 2em;
  72. margin: 0px 2.2em 2em 0px;
  73. font-size: 18px;
  74. outline: none;
  75. text-shadow: 1px 1px 1px #black;
  76. }
  77. .btn-#9933CC:hover {
  78. background: linear-gradient(to top right, #9933CC, #9933CC 100%);
  79. }`);
  80. let styles = document.createElement("style");
  81. styles.type = "text/css";
  82. styles.appendChild(style);
  83. document.body.appendChild(styles);
  84.  
  85. const request = new XMLHttpRequest();
  86. request.onreadystatechange = function() {
  87. if (this.readyState == 4 && this.status == 200) {
  88. document.getElementsByClassName("hud-intro-wrapper")[0].childNodes[3].innerHTML = `People in game: ${JSON.parse(request.responseText).players}/${JSON.parse(request.responseText).capacity} [${(JSON.parse(request.responseText).players / JSON.parse(request.responseText).capacity * 100).toFixed(2)}%]`;
  89. }
  90. };