您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Cheats for the popular IO game, Yohoho.IO!
当前为
// ==UserScript== // @name Yohoho.io Cheats // @namespace http://yohoho.io/ // @version 1.0.0 // @description Cheats for the popular IO game, Yohoho.IO! // @author Steviegt6 // @match yohoho.io/ // @grant none // ==/UserScript== window.addEventListener("keydown", cheats, false); showCheats(); function showCheats() { var box = document.getElementById("desktop-controls"); var controls = document.createElement("div"); controls.className = "title2"; controls.id = "hackids"; var hacks = document.getElementById("hackids"); var hackselement = document.createElement("div"); var hackstextnode = document.createTextNode("Available Cheats:\nI - Change your island (Conflicts with XP cheat.)\nO - Gain a set amount of coins\nP = Change your character\nX = Set XP! (Conflicts with island cheat.)"); hackselement.appendChild(hackstextnode); var controlstextnode = document.createTextNode("Cheats"); controls.appendChild(controls); box.appendChild(controls); box.appendChild(hackselement); } function cheats(e) { if (e.keyCode =="79") //O - Coins { var a = prompt("What would you like to set your coin coint to?"); if(isNaN(a)) { window.alert("Oops! Something went wrong! Perhaps entering a number next time will solve the issue?") } else { localStorage.setItem("coinsOwned", a); document.getElementById("homepage-booty").innerHTML = a; document.getElementById("skin-popup-booty").innerHTML = a; } } else if (e.keyCode =="88") //X - XP { var x = prompt("What would you like to set your XP to?"); if(isNaN(a)) { window.alert("Oops! Something went wrong! Perhaps entering a number next time will solve the issue?") } else { localStorage.setItem("playerXP", a); document.getElementById("homepage-booty").innerHTML = a; document.getElementById("skin-popup-booty").innerHTML = a; } } else if(e.keyCode == "80") //P - Character { var b = prompt("Which character would you like to become? Please pick a number between 1 and 45!") if (isNaN(b)) { window.alert("Oops! something went wrong! Perhaps enterign a number next time will solve the issue?") } else if (b < 1 || b > 45) { window.alert("Oops! something went wrong! Please choose a number between 1 and 45!") } else if (b != null || b != undefined || b!= "") { localStorage.setItem("playerSkin", b); window.alert("Please reload the page the enable the skin you have chosen!") } } else if(e.keyCode == "73") //I - Island { var c = prompt("Which island would you like to travel to?\n1 = Tortuga\n2 = Beach\n3 = Easter\n4 = Wreck\n5 = Aztec\n6 = Volcano\n7 = Village") if(c == 1) ////0,140,700,2100,4400,7600,13500 { localStorage.setItem("playerXP", 0); window.alert("Island set to Tortuga. Please reload."); } else if(c == 2) { localStorage.setItem("playerXP", 140); window.alert("Island set to Beach. Please reload."); } else if(c == 3) { localStorage.setItem("playerXP", 700); window.alert("Island set to Easter. Please reload."); } else if(c == 4){ localStorage.setItem("playerXP", 2100); window.alert("Island set to Wreck. Please reload."); } else if(c == 5){ localStorage.setItem("playerXP", 4400); window.alert("Island set to Aztec. Please reload."); } else if(c == 6){ localStorage.setItem("playerXP", 4400); window.alert("Island set to Volcano. Please reload."); } else if(c == 7){ localStorage.setItem("playerXP", 4400); window.alert("Island set to Volcano. Please reload."); } else if(c != (1 || 2 || 3 || 4 || 5 || 6 || 7)){ window.alert("Oops! Something went wrong! Please enter a number between 1 and 7!"); } } } console.log("b"); let ez = document.getElementById("skin-button"); ez.onclick = function(){ yohoho.chooseSkin(); let a = parseInt(localStorage.getItem("coinsOwned")); document.getElementById("skin-popup-booty").innerHTML = a; }