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.2
  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. // Contact Info:
  14. // Steviegt6#9616 (discord)
  15. // Steviegt6 (github)
  16. // https://steviegt6/github.io/ (website)
  17. // https://discordapp.com/invite/tYzEbqX (discord server)
  18. // =-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-
  19.  
  20. // =-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-
  21. // Version History:
  22. // -=-=-=-=-
  23. // v1.1.2 qol/patch
  24. // Small qol tweaks
  25. // Fixed skin selection bugs
  26. // You're allowed to view the skisn menu again
  27. // -=-=-=-=-
  28. // v1.1.1 patch
  29. // Small bug fixes
  30. // -=-=-=-=-
  31. // v1.1.0 update
  32. // Fixed many bugs.
  33. // -=-=-=-=-
  34. // v1.0.0 release
  35. // Initial release. Buggy.
  36. // -=-=-=-=-
  37. // =-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-
  38.  
  39. // =-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-
  40. // Guide:
  41. // Press 'O' to set your coins to any value you want!
  42. // Press 'P' to change your character! (Buggy)
  43. // Press 'I' to change your island!
  44. // Press 'X' to set your XP to any value you want! (Buggy)
  45. // =-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-
  46.  
  47. showCheats();
  48. overrideSkin();
  49.  
  50.  
  51. document.title = "*HACKED* YoHoHo.io - pirate battle royale io game";
  52.  
  53. document.addEventListener('keydown', cheats, false);
  54.  
  55. function showCheats()
  56. {
  57. var box = document.getElementById("desktop-controls");
  58. var controls = document.createElement("div");
  59. controls.className = "title2";
  60. controls.id = "hackids";
  61. var hacks = document.getElementById("hackids");
  62. var hackselement = document.createElement("div");
  63. 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.)");
  64. hackselement.appendChild(hackstextnode);
  65. var controlstextnode = document.createTextNode("Cheats");
  66. box.appendChild(controls);
  67. box.appendChild(hackselement);
  68. }
  69.  
  70. function cheats(e)
  71. {
  72. if (e.keyCode =="79") //O - Coins
  73. {
  74. var a = prompt("What would you like to set your coin coint to?");
  75. if(isNaN(a))
  76. {
  77. alert("Oops! Something went wrong! Perhaps entering a number next time will solve the issue?")
  78. }
  79. else
  80. {
  81. localStorage.setItem("coinsOwned", a);
  82. document.getElementById("homepage-booty").innerHTML = a;
  83. document.getElementById("skin-popup-booty").innerHTML = a;
  84. }
  85. }
  86. else
  87. if (e.keyCode =="88") //X - XP
  88. {
  89. var x = prompt("What would you like to set your XP to?");
  90. if(isNaN(a))
  91. {
  92. alert("Oops! Something went wrong! Perhaps entering a number next time will solve the issue?")
  93. }
  94. else
  95. {
  96. localStorage.setItem("playerXP", a);
  97. document.getElementById("homepage-booty").innerHTML = a;
  98. document.getElementById("skin-popup-booty").innerHTML = a;
  99. }
  100. }
  101. else if(e.keyCode == "80") //P - Character
  102. {
  103. var b = prompt("Which character would you like to become? Please pick a number between 1 and 35!")
  104. if (isNaN(b))
  105. {
  106. alert("Oops! something went wrong! Perhaps enterign a number next time will solve the issue?")
  107. }
  108. else if (b < 1 || b > 35)
  109. {
  110. alert("Oops! something went wrong! Please choose a number between 1 and 35!")
  111. }
  112. else if (b != null || b != undefined || b!= "")
  113. {
  114. localStorage.setItem("playerSkin", b);
  115. alert("Skin selected! Reloading...")
  116. location.reload()
  117. }
  118. }
  119. else if(e.keyCode == "73") //I - Island
  120. {
  121. 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")
  122. if(c == 1) ////0,140,700,2100,4400,7600,13500
  123. {
  124. localStorage.setItem("playerXP", 0);
  125. alert("Island set to Tortuga. Reloading...");
  126. location.reload()
  127. }
  128. else if(c == 2)
  129. {
  130. localStorage.setItem("playerXP", 140);
  131. alert("Island set to Beach. Reloading...");
  132. location.reload()
  133. }
  134. else if(c == 3)
  135. {
  136. localStorage.setItem("playerXP", 700);
  137. alert("Island set to Easter. Reloading...");
  138. location.reload()
  139. }
  140. else if(c == 4){
  141. localStorage.setItem("playerXP", 2100);
  142. alert("Island set to Wreck. Reloading...");
  143. location.reload()
  144. }
  145. else if(c == 5){
  146. localStorage.setItem("playerXP", 4400);
  147. alert("Island set to Aztec. Reloading...");
  148. location.reload()
  149. }
  150. else if(c == 6){
  151. localStorage.setItem("playerXP", 7600);
  152. alert("Island set to Volcano. Reloading...");
  153. location.reload()
  154. }
  155. else if(c == 7){
  156. localStorage.setItem("playerXP", 13500);
  157. alert("Island set to Volcano. Reloading...");
  158. location.reload()
  159. }
  160. else if(c != (1 || 2 || 3 || 4 || 5 || 6 || 7)){
  161. alert("Oops! Something went wrong! Please enter a number between 1 and 7!");
  162. location.reload()
  163. }
  164. }
  165. }