Yohoho.io Hack

Hack yohoho.io | Choose any island Hotkey: I | Choose any skin 1-35 (1 is the default skin 35 is the max skin) Hotkey: P | Give coins Hotkey: O

  1. // ==UserScript==
  2. // @name Yohoho.io Hack
  3. // @namespace http://yohoho.io/
  4. // @version 0.5
  5. // @description Hack yohoho.io | Choose any island Hotkey: I | Choose any skin 1-35 (1 is the default skin 35 is the max skin) Hotkey: P | Give coins Hotkey: O
  6. // @author Sonic
  7. // @match yohoho.io/
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11.  
  12.  
  13. // ==============================================================================
  14. // How to use the hacks:
  15. // Press O to change your coins.
  16. // Press P to change your character. 1 is default 2 is the one after default ext.
  17. // Press I to change your island.
  18. // ==============================================================================
  19.  
  20.  
  21.  
  22. window.addEventListener("keydown", hehe, false);
  23.  
  24. showHacks();
  25.  
  26. function showHacks(){
  27. var box = document.getElementById("desktop-controls");
  28. var controls = document.createElement("div");
  29. controls.className = "title2";
  30. controls.id = "sonic";
  31. var lol = document.getElementById("sonic");
  32. var loltext = document.createElement("div");
  33. var loltextt = document.createTextNode("I - Change island \nO - Get coins \nP - Change skin");
  34. loltext.appendChild(loltextt);
  35. var controlsText = document.createTextNode("Hacks");
  36. controls.appendChild(controlsText);
  37. box.appendChild(controls);
  38. box.appendChild(loltext);
  39. }
  40.  
  41. function hehe(e){
  42. if(e.keyCode == "79"){
  43. var a = prompt("How many coins would you like?");
  44. if(isNaN(a)){
  45. window.alert("Please enter a number next time");
  46. }else{
  47. localStorage.setItem("coinsOwned", a);
  48. document.getElementById("homepage-booty").innerHTML = a;
  49. document.getElementById("skin-popup-booty").innerHTML = a;
  50. }
  51. }else if(e.keyCode == "80"){
  52. var b = prompt("What character would you like? 1-35");
  53. if(isNaN(b) || b < 1 || b > 35){
  54. window.alert("Please put a number from 1-35 next time.");
  55. }else if(b != null || b != undefined || b != ""){
  56. localStorage.setItem("playerSkin", b);
  57. window.alert("Please reload to enable the skin");
  58. }
  59. }else if(e.keyCode == "73"){
  60. var c = prompt("What island would you like? \n1 - Tortuga \n2 - Beach \n3 - Easter \n4 - Wreck \n5 - Volcano \n6 - Village");
  61. if(c == 1){
  62. localStorage.setItem("playerXP", 0);
  63. window.alert("Island Changed. Please reload to save changes.");
  64. }else if(c == 2){
  65. localStorage.setItem("playerXP", 200);
  66. window.alert("Island Changed. Please reload to save changes.");
  67. }else if(c == 3){
  68. localStorage.setItem("playerXP", 1600);
  69. window.alert("Island Changed. Please reload to save changes.");
  70. }else if(c == 4){
  71. localStorage.setItem("playerXP", 4200);
  72. window.alert("Island Changed. Please reload to save changes.");
  73. }else if(c == 5){
  74. localStorage.setItem("playerXP", 8300);
  75. window.alert("Island Changed. Please reload to save changes.");
  76. }else if(c == 6){
  77. localStorage.setItem("playerXP", 15000);
  78. window.alert("Island Changed. Please reload to save changes.");
  79. }else if(c != (1 || 2 || 3 || 4 || 5 || 6)){
  80. window.alert("Please put in a number from 1 to 6.");
  81. }
  82. }
  83. }
  84.  
  85. console.log("b");
  86.  
  87. let ez = document.getElementById("skin-button");
  88. ez.onclick = function(){
  89. yohoho.chooseSkin();
  90. let a = parseInt(localStorage.getItem("coinsOwned"));
  91. document.getElementById("skin-popup-booty").innerHTML = a;
  92. }