Yohoho.io Cheats

Cheats for the popular IO game, Yohoho.IO!

当前为 2019-10-20 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Yohoho.io Cheats
  3. // @namespace http://yohoho.io/
  4. // @version 1.1.1
  5. // @description Cheats for the popular IO game, Yohoho.IO!
  6. // @author Steviegt6
  7. // @match https://yohoho.io/
  8. // @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. // =-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-
  13. // Version History:
  14. // -=-=-=-=-
  15. // v1.1.1 patch
  16. // Small bug fixes
  17. // -=-=-=-=-
  18. // v1.1.0 update
  19. // Fixed many bugs.
  20. // -=-=-=-=-
  21. // v1.0.0 release
  22. // Initial release. Buggy.
  23. // -=-=-=-=-
  24. // =-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-
  25.  
  26. // =-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-
  27. // Guide:
  28. // Press 'O' to set your coins to any value you want!
  29. // Press 'P' to change your character! (Buggy)
  30. // Press 'I' to change your island!
  31. // Press 'X' to set your XP to any value you want! (Buggy)
  32. // =-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-
  33.  
  34. showCheats();
  35. overrideSkin();
  36.  
  37.  
  38. document.title = "*HACKED* YoHoHo.io - pirate battle royale io game";
  39.  
  40. document.addEventListener('keydown', cheats, false);
  41.  
  42. function showCheats()
  43. {
  44. var box = document.getElementById("desktop-controls");
  45. var controls = document.createElement("div");
  46. controls.className = "title2";
  47. controls.id = "hackids";
  48. var hacks = document.getElementById("hackids");
  49. var hackselement = document.createElement("div");
  50. var hackstextnode = document.createTextNode("I - Change your island (Conflicts with XP cheat.)" + " O - Gain a set amount of coins" + " P = Change your character, buggy" + " X = Set XP! (Conflicts with island cheat, buggy.)");
  51. hackselement.appendChild(hackstextnode);
  52. var controlstextnode = document.createTextNode("Cheats");
  53. box.appendChild(controls);
  54. box.appendChild(hackselement);
  55. }
  56.  
  57. function cheats(e)
  58. {
  59. if (e.keyCode =="79") //O - Coins
  60. {
  61. var a = prompt("What would you like to set your coin coint to?");
  62. if(isNaN(a))
  63. {
  64. alert("Oops! Something went wrong! Perhaps entering a number next time will solve the issue?")
  65. }
  66. else
  67. {
  68. localStorage.setItem("coinsOwned", a);
  69. document.getElementById("homepage-booty").innerHTML = a;
  70. document.getElementById("skin-popup-booty").innerHTML = a;
  71. }
  72. }
  73. else
  74. if (e.keyCode =="88") //X - XP
  75. {
  76. var x = prompt("What would you like to set your XP to?");
  77. if(isNaN(a))
  78. {
  79. alert("Oops! Something went wrong! Perhaps entering a number next time will solve the issue?")
  80. }
  81. else
  82. {
  83. localStorage.setItem("playerXP", a);
  84. document.getElementById("homepage-booty").innerHTML = a;
  85. document.getElementById("skin-popup-booty").innerHTML = a;
  86. }
  87. }
  88. else if(e.keyCode == "80") //P - Character
  89. {
  90. var b = prompt("Which character would you like to become? Please pick a number between 1 and 45!")
  91. if (isNaN(b))
  92. {
  93. alert("Oops! something went wrong! Perhaps enterign a number next time will solve the issue?")
  94. }
  95. else if (b < 1 || b > 45)
  96. {
  97. alert("Oops! something went wrong! Please choose a number between 1 and 45!")
  98. }
  99. else if (b != null || b != undefined || b!= "")
  100. {
  101. localStorage.setItem("playerSkin", b);
  102. alert("Please reload the page the enable the skin you have chosen!")
  103. }
  104. }
  105. else if(e.keyCode == "73") //I - Island
  106. {
  107. 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")
  108. if(c == 1) ////0,140,700,2100,4400,7600,13500
  109. {
  110. localStorage.setItem("playerXP", 0);
  111. alert("Island set to Tortuga. Please reload.");
  112. }
  113. else if(c == 2)
  114. {
  115. localStorage.setItem("playerXP", 140);
  116. alert("Island set to Beach. Please reload.");
  117. }
  118. else if(c == 3)
  119. {
  120. localStorage.setItem("playerXP", 700);
  121. alert("Island set to Easter. Please reload.");
  122. }
  123. else if(c == 4){
  124. localStorage.setItem("playerXP", 2100);
  125. alert("Island set to Wreck. Please reload.");
  126. }
  127. else if(c == 5){
  128. localStorage.setItem("playerXP", 4400);
  129. alert("Island set to Aztec. Please reload.");
  130. }
  131. else if(c == 6){
  132. localStorage.setItem("playerXP", 7600);
  133. alert("Island set to Volcano. Please reload.");
  134. }
  135. else if(c == 7){
  136. localStorage.setItem("playerXP", 13500);
  137. alert("Island set to Volcano. Please reload.");
  138. }
  139. else if(c != (1 || 2 || 3 || 4 || 5 || 6 || 7)){
  140. alert("Oops! Something went wrong! Please enter a number between 1 and 7!");
  141. }
  142. }
  143. }
  144.  
  145. console.log("b");
  146.  
  147. function overrideSkin()
  148. {
  149. let ez = document.getElementById("skin-button");
  150. ez.onclick = function()
  151. {
  152. yohoho.chooseSkin();
  153. let a = parseInt(localStorage.getItem("coinsOwned"));
  154. document.getElementById("skin-popup-booty").innerHTML = a;
  155. }
  156. }

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址