// ==UserScript==
// @name Naruto Mod 2
// @match *://*.moomoo.io/*
// @run-at document_idle
// @license MIT
// @grant none
// @namespace n
// @version 2
// @description This is A moomoo.io hack meant to help the users to strive in their battles(still on Testing
// @author zylo
// @downloadURL https://update.greasyfork.icu/scripts/494184/Naruto%20Mod%202.user.js
// @updateURL https://update.greasyfork.icu/scripts/494184/Naruto%20Mod%202.meta.js
// ==/UserScript==
setTimeout(() => {
document.getElementById('loadingText').innerHTML = `
Loading Screen
`;
}, 20);
let editMainMenu = `
})();
`
$("#mainMenu").append(editMainMenu)
setTimeout( () => {
setTimeout( () => {
$('#gameName').append('Naruto')
setTimeout( () => {
$('#gameName').append(' X')
setTimeout( () => {
$('#gameName').append('N')
setTimeout( () => {
$('#gameName').append('Na')
setTimeout( () => {
$('#gameName').append('Nar')
setTimeout( () => {
$('#gameName').append('Naru')
setTimeout( () => {
$('#gameName').append('Narut')
setTimeout( () => {
$('#gameName').append('Naruto')
setTimeout( () => {
$('#gameName').append('x')
setTimeout( () => {
$('#gameName').append('Naruto X')
setTimeout( () => {
$('#gameName').append('V')
setTimeout( () => {
$('#gameName').append('2')
setTimeout( () => {
$('#gameName').append('Naruto X V2')
setTimeout( () => {
setInterval(() => {
setTimeout(() => {
document.getElementById("gameName").innerHTML = "Naruto"
setTimeout(() => {
document.getElementById("gameName").innerHTML = "?Naruto"
setTimeout(() => {
document.getElementById("gameName").innerHTML = "Naruto?"
setTimeout(() => {
document.getElementById("gameName").innerHTML = "n-n-n-n-Naruto"
setTimeout(() => {
document.getElementById("gameName").innerHTML = "OP?"
setTimeout(() => {
document.getElementById("gameName").innerHTML = "?aruto"
setTimeout(() => {
document.getElementById("gameName").innerHTML = "N?ruto"
setTimeout(() => {
document.getElementById("gameName").innerHTML = "N?ruto"
setTimeout(() => {
document.getElementById("gameName").innerHTML = "Nar?to"
setTimeout(() => {
document.getElementById("gameName").innerHTML = "Naruto X"
setTimeout(() => {
document.getElementById("gameName").innerHTML = "Naruto X v"
setTimeout(() => {
document.getElementById("gameName").innerHTML = "Naruto X V2"
setTimeout(() => {
document.getElementById("gameName").innerHTML = "Naruto X V2"
}, 100);
}, 100);
}, 100);
}, 100);
}, 100);
}, 100);
}, 100);
}, 100);
}, 100);
}, 100);
}, 100);
}, 100);
}, 100);
}, 2000);
}, 300);
}, 300);
}, 300);
}, 300);
}, 300);
}, 300);
}, 300);
}, 300);
}, 300);
}, 300);
}, 300);
}, 300);
}, 300);
}, 300);
}, 2000);
$("#mapDisplay").css({background: `url('https://media.giphy.com/media/mTdVKHLEFTGWQ/giphy.gif')`});
$("#mainMenu")[0].style.backgroundImage = "url(https://cdn.discordapp.com/attachments/912279165921804309/921768025454161971/unknown.png)"
document.title = "Naruto Mod";
document.getElementById('loadingText').innerHTML = 'Made By AspecT303';
document.getElementById('loadingText').style.color = 'Yellow'
document.getElementById("setupCard").style.color = "Yellow";
document.getElementById("gameName").innerHTML = "Naruto";
setInterval(() => {
setTimeout( () => {
document.getElementById('diedText').style.color = "Yellow";
document.getElementById('diedText').innerHTML = "Impossible";
setTimeout( () => {
document.getElementById('diedText').style.color = "Yellow";
document.getElementById('diedText').innerHTML = "Kill me once shame on you kill me twice shame on me";
}, 200);
}, 200);}
, 500);
document.getElementById("gameName").style.color = "Yellow";
document.getElementById("storeHolder").style = "height: 1500px; width: 450px;"
document.querySelector("#leaderboard").appendChild(
(function() {
let text = "Ping:";
let oldPing = 0;
const pingSpan = document.createElement("span");
pingSpan.id = "pingTime";
pingSpan.textContent = text;
pingSpan.style.display = "inline-block";
setInterval(function() {
typeof pingTime !== "undefined" &&
oldPing !== pingTime &&
((oldPing = pingTime),
(pingSpan.textContent = text + oldPing),
(function() {
if (oldPing <= 30) {
pingSpan.style.color = "green";
}
if (oldPing >= 31 && oldPing <= 100) {
pingSpan.style.color = "green";
}
if (oldPing >= 101 && oldPing <= 125) {
pingSpan.style.color = "green";
}
if (oldPing >= 126 && oldPing <= 155) {
pingSpan.style.color = "orange";
}
if (oldPing >= 156 && oldPing <= 200) {
pingSpan.style.color = "orange";
}
if (oldPing >= 201 && oldPing <= 275) {
pingSpan.style.color = "orange";
}
if (oldPing >= 276 && oldPing <= 350) {
pingSpan.style.color = "red";
}
if (oldPing >= 351 && oldPing <= 500) {
pingSpan.style.color = "red";
}
if (oldPing >= 501 && oldPing <= 1600) {
pingSpan.style.color = "black";
}
if (oldPing >= 1601 && oldPing <= 10000) {
pingSpan.style.color = "black";
}
})());
});
return pingSpan;
})()
);
let founda = false;
let scriptTags = document.getElementsByTagName("script");
for (let i = 0; i < scriptTags.length; i++) {
if (scriptTags[i].src.includes("index-f3a4c1ad.js") && !founda) {
scriptTags[i].remove();
founda = true;
break;
}
}
document.addEventListener("keydown", function(event) {
if (event.keyCode === 192) {
const chatHolder = document.getElementById("gameUI");
if (chatHolder) {
const currentDisplay = chatHolder.style.display;
chatHolder.style.display = currentDisplay === "none" ? "block" : "none";
}
}
});
var styleItem = document.createElement("style");
styleItem.type = "text/css";
styleItem.appendChild(document.createTextNode(`
#suggestBox {
width: 355px;
border-radius: 3px;
background-color: rgba(0,0,0,0.5);
margin: auto;
text-align: left;
z-index: 49;
pointer-events: auto;
position: relative;
bottom: 3.5px;
overflow-y: auto;
}
#suggestBox div {
background-color: rgba(255,255,255,0);
color: rgba(255,255,255,1);
transition: background-color 0.3s, color 0.3s;
}
#suggestBox div:hover {
background-color: rgba(255,255,255,0.2);
color: rgba(0,0,0,1);
}
.suggestBoxHard {
color: rgba(255,255,255,1);
font-size: 18px;
}
.suggestBoxLight {
color: rgba(255,255,255,0.7);
font-size: 18px;
}
`));
document.head.appendChild(styleItem);
window.addEventListener('load', function() {
var allianceButton = document.getElementById('allianceButton');
var storeButton = document.getElementById('storeButton');
if (storeButton) {
storeButton.style.right = '26px';
storeButton.style.top = '420px';
}
if (allianceButton) {
allianceButton.style.right = '26px';
allianceButton.style.top = '479px';
}
});
function getEl(id) {
return document.getElementById(id);
}
let newFont = document.createElement("link");
newFont.rel = "stylesheet";
newFont.href = "https://fonts.googleapis.com/css?family=Ubuntu:700";
newFont.type = "text/css";
document.body.append(newFont);
let min = document.createElement("script");
min.src = "https://rawgit.com/kawanet/msgpack-lite/master/dist/msgpack.min.js";
document.body.append(min);
window.oncontextmenu = function() {
return false;
};
let config = window.config;
// CLIENT:
config.clientSendRate = 9; // Aim Packet Send Rate
config.serverUpdateRate = 9;
// UI:
config.deathFadeout = 0;
config.playerCapacity = 9999;
// CHECK IN SANDBOX:
config.isSandbox = window.location.hostname == "sandbox.moomoo.io";
// CUSTOMIZATION:
config.skinColors = ["#bf8f54", "#cbb091", "#896c4b",
"#fadadc", "#ececec", "#c37373", "#4c4c4c", "#ecaff7", "#738cc3",
"#8bc373", "#91b2db"
];
config.weaponVariants = [{
id: 0,
src: "",
xp: 0,
val: 1,
}, {
id: 1,
src: "_g",
xp: 3000,
val: 1.1,
}, {
id: 2,
src: "_d",
xp: 7000,
val: 1.18,
}, {
id: 3,
src: "_r",
poison: true,
xp: 12000,
val: 1.18,
}, {
id: 4,
src: "_e",
poison: true,
heal: true,
xp: 24000,
val: 1.18,
}];
// VISUAL:
config.anotherVisual = true;
config.useWebGl = false;
config.resetRender = true;
function waitTime(timeout) {
return new Promise((done) => {
setTimeout(() => {
done();
}, timeout);
});
}
let botSkts = [];
// STORAGE:
let canStore;
if (typeof(Storage) !== "undefined") {
canStore = true;
}
function saveVal(name, val) {
if (canStore)
localStorage.setItem(name, val);
}
function deleteVal(name) {
if (canStore)
localStorage.removeItem(name);
}
function getSavedVal(name) {
if (canStore)
return localStorage.getItem(name);
return null;
}
// CONFIGS:
let gC = function(a, b) {
try {
let res = JSON.parse(getSavedVal(a));
if (typeof res === "object") {
return b;
} else {
return res;
}
} catch (e) {
alert("dieskid");
return b;
}
};
function setCommands() {
return {
"help": {
desc: "Show Commands",
action: function(message) {
for (let cmds in commands) {
addMenuChText("/" + cmds, commands[cmds].desc, "lime", 1);
}
}
},
"clear": {
desc: "Clear Chats",
action: function(message) {
resetMenuChText();
}
},
"debug": {
desc: "Debug Mod For Development",
action: function(message) {
addDeadPlayer(player);
addMenuChText("Debug", "Done", "#99ee99", 1);
}
},
"play": {
desc: "Play Music ( /play [link] )",
action: function(message) {
let link = message.split(" ");
if (link[1]) {
let audio = new Audio(link[1]);
audio.play();
} else {
addMenuChText("Warn", "Enter Link ( /play [link] )", "#99ee99", 1);
}
}
},
"bye": {
desc: "Leave Game",
action: function(message) {
window.leave();
}
},
};
}
function setConfigs() {
return {
killChat: false,
autoBuy: true,
autoBuyEquip: true,
autoPush: true,
revTick: true,
spikeTick: true,
predictTick: true,
autoPlace: true,
autoReplace: true,
antiTrap: true,
slowOT: false,
attackDir: false,
showDir: false,
autoRespawn: false
};
}
let commands = setCommands();
let configs = setConfigs();
window.removeConfigs = function() {
for (let cF in configs) {
deleteVal(cF, configs[cF]);
}
};
for (let cF in configs) {
configs[cF] = gC(cF, configs[cF]);
}
// MENU FUNCTIONS:
window.changeMenu = function() {};
window.debug = function() {};
window.wasdMode = function() {};
// PAGE 1:
window.startGrind = function() {};
// PAGE 3:
window.connectFillBots = function() {};
window.destroyFillBots = function() {};
window.tryConnectBots = function() {};
window.destroyBots = function() {};
window.resBuild = function() {};
window.toggleBotsCircle = function() {};
window.toggleVisual = function() {};
// SOME FUNCTIONS:
window.prepareUI = function() {};
window.leave = function() {};
window.ping = 0;
class deadfuturechickenmodrevival {
constructor(flarez, lore) {
this.inGame = false;
this.lover = flarez + lore;
this.baby = "ae86";
this.isBlack = 0;
this.webSocket = undefined;
this.checkBaby = function() {
this.baby !== "ae86" ? this.isBlack++ : this.isBlack--;
if (this.isBlack >= 1) return "bl4cky";
return "Its dead";
};
this.x2 = 0;
this.y2 = 0;
this.chat = "Nah id lose";
this.summon = function(tmpObj) {
this.x2 = tmpObj.x;
this.y2 = tmpObj.y;
this.chat = tmpObj.name + "NAH UD LOSE";
};
this.commands = function(cmd) {
cmd == "rv3link" && window.open("https://florr.io/");
cmd == "woah" && window.open("https://www.youtube.com/watch?v=MO0AGukzj6M");
return cmd;
};
this.dayte = "11yearold";
this.memeganoob = "69yearold";
this.startDayteSpawn = function(tmpObj) {
let ratio = setInterval(() => {
this.x2 = tmpObj.x + 20;
this.y2 = tmpObj.y - 20;
this.chat = "UR SO BAD LOL";
if (tmpObj.name == "ae86") {
this.chat = "omg ae86 go run";
setTimeout(() => {
this.inGame = false;
clearInterval(ratio);
}, 1000);
}
}, 1234);
};
this.AntiChickenModV69420 = function(tmpObj) {
return "!c!dc user " + tmpObj.name;
};
}
};
class HtmlAction {
constructor(element) {
this.element = element;
};
add(code) {
if (!this.element) return undefined;
this.element.innerHTML += code;
};
newLine(amount) {
let result = ` `;
if (amount > 0) {
result = ``;
for (let i = 0; i < amount; i++) {
result += ` `;
}
}
this.add(result);
};
checkBox(setting) {
let newCheck = ` `;
this.add(newCheck);
};
text(setting) {
let newText = ` `;
this.add(newText);
};
select(setting) {
let newSelect = ``;
for (let options in setting.option) {
newSelect += `${options} `;
}
newSelect += ` `;
this.add(newSelect);
};
button(setting) {
let newButton = ``;
setting.innerHTML && (newButton += setting.innerHTML);
newButton += ` `;
this.add(newButton);
};
selectMenu(setting) {
let newSelect = ``;
let last;
let i = 0;
for (let options in setting.menu) {
newSelect += `${options} `;
i++;
}
newSelect += ` `;
this.add(newSelect);
i = 0;
for (let options in setting.menu) {
window[options + "Func"] = function() {
setting.menu[options] = getEl("check_" + options).checked ? true : false;
saveVal(options, setting.menu[options]);
getEl("O_" + options).style.color = setting.menu[options] ? "#000" : "#fff";
getEl("O_" + options).style.background = setting.menu[options] ? "#8ecc51" : "#cc5151";
//getEl(setting.id).style.color = setting.menu[options] ? "#8ecc51" : "#cc5151";
};
this.checkBox({
id: "check_" + options,
style: `display: ${i == 0 ? "inline-block" : "none"};`,
class: "checkB",
onclick: `window.${options + "Func"}()`,
checked: setting.menu[options]
});
i++;
}
last = "check_" + getEl(setting.id).value.split("_")[1];
window[setting.id + "Func"] = function() {
getEl(last).style.display = "none";
last = "check_" + getEl(setting.id).value.split("_")[1];
getEl(last).style.display = "inline-block";
//getEl(setting.id).style.color = setting.menu[last.split("_")[1]] ? "#8ecc51" : "#fff";
};
};
};
class Html {
constructor() {
this.element = null;
this.action = null;
this.divElement = null;
this.startDiv = function(setting, func) {
let newDiv = document.createElement("div");
setting.id && (newDiv.id = setting.id);
setting.style && (newDiv.style = setting.style);
setting.class && (newDiv.className = setting.class);
this.element.appendChild(newDiv);
this.divElement = newDiv;
let addRes = new HtmlAction(newDiv);
typeof func == "function" && func(addRes);
};
this.addDiv = function(setting, func) {
let newDiv = document.createElement("div");
setting.id && (newDiv.id = setting.id);
setting.style && (newDiv.style = setting.style);
setting.class && (newDiv.className = setting.class);
setting.appendID && getEl(setting.appendID).appendChild(newDiv);
this.divElement = newDiv;
let addRes = new HtmlAction(newDiv);
typeof func == "function" && func(addRes);
};
};
set(id) {
this.element = getEl(id);
this.action = new HtmlAction(this.element);
};
resetHTML(text) {
if (text) {
this.element.innerHTML = ``;
} else {
this.element.innerHTML = ``;
}
};
setStyle(style) {
this.element.style = style;
};
setCSS(style) {
this.action.add(``);
};
};
let HTML = new Html();
let menuDiv = document.createElement("div");
menuDiv.id = "menuDiv";
menuDiv.draggable = true;
menuDiv.addEventListener("dragstart", function (e) {
e.dataTransfer.setData("text/plain", "");
});
document.addEventListener("dragover", function (e) {
menuDiv.style.left = e.clientX - menuDiv.offsetWidth / 2 + "px";
menuDiv.style.top = e.clientY - menuDiv.offsetHeight / 2 + "px";
});
document.body.appendChild(menuDiv);
HTML.set("menuDiv");
HTML.setStyle(`
position: absolute;
left: 20px;
top: 20px;
`);
HTML.resetHTML();
HTML.setCSS(`
body {
background-color: #1a1a1a; /* Черный цвет фона */
color: #fff; /* Белый цвет текста */
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; /* Более роскошный шрифт */
}
.menuClass {
color: #fff;
font-size: 22px; /* Увеличенный размер шрифта */
text-align: left;
padding: 20px; /* Увеличенный внутренний отступ */
width: 300px; /* Увеличенная ширина меню */
background-color: #333; /* Темно-серый цвет фона */
border: 2px solid #555; /* Черный цвет рамки */
border-radius: 12px; /* Более сильно скругленные углы */
box-shadow: 0 4px 8px rgba(0,0,0,0.4); /* Тень для выделения */
}
.menuC {
display: none;
font-size: 14px; /* Уменьшенный размер шрифта */
max-height: 200px; /* Увеличенная максимальная высота */
overflow-y: auto;
}
.menuB {
text-align: center;
background-color: #265f80;
color: #fff;
border: none;
border-radius: 4px;
padding: 4 4px; /* Увеличенный внутренний отступ */
cursor: pointer;
transition: background-color 0.3s ease;
}
.menuB:hover {
background-color: #0056b3;
}
.menuB:active {
transform: translateY(1px);
}
.customText {
color: #fff;
border: 1px solid #555;
border-radius: 5px;
padding: 2px;
transition: background-color 0.3s ease;
}
.customText:focus {
background-color: #444; /* Темно-серый цвет фона при фокусировке */
}
.checkB {
cursor: pointer;
}
.Cselect {
background-color: #444; /* Темно-серый цвет фона */
color: #fff;
border: 1px solid #555;
border-radius: 66px;
padding: 2px;
}
#menuChanger {
position: absolute;
right: 20px; /* Увеличенный отступ справа */
top: 20px; /* Увеличенный отступ сверху */
background-color: transparent;
color: #fff;
border: none;
cursor: pointer;
}
#menuChanger:hover {
color: #ccc; /* Светло-серый цвет при наведении */
}
/* Скроллбары */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #333; /* Темно-серый цвет фона */
}
::-webkit-scrollbar-thumb {
background: #666; /* Светло-серый цвет скроллбара */
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #999; /* Более светлый цвет при наведении */
}
/* Добавление узоров на задний фон */
body {
background-image: url('https://www.transparenttextures.com/patterns/asfalt-dark.png'); /* Использование узора */
}
`);
$("body").after(`
`);
$("body").after(`