Yohoho.io hack UGRADED

Hack yohoho.io

// ==UserScript==
// @name         Yohoho.io hack UGRADED
// @namespace    https//yohoho.io/
// @version      0.6
// @description  Hack yohoho.io
// @author       <3 <br/> er <c0d3> {m4k3r}
// @match        yohoho.io
// @grant        none
// ==/UserScript==



// ==============================================================================
// How to use the hacks:
// Press O to change your coins.
// Press P to change your character by numbers
// Press I to change your island.
// ==============================================================================

function findHeader()
{
    var list = document.getElementsByTagName("div");
    // var resultaat = list
    //    alert (list.length);

    //for (var i = 5; i < 15; i++) {
    // alert (i + " - " + list[i].innerHTML);
    //}

    list[8].innerHTML = "Yohoho.io HACKED";
    //if (list[i].textContent == searchText) {
    //found = aTags[i];
    // break;


    //alert("done");
}

findHeader();
showHacks();

window.addEventListener("keydown", hehe, false);

function showHacks(){
    var box = document.getElementById("desktop-controls");
    var controls = document.createElement("div");
    controls.className = "title2";
    controls.id = "hisstuff";
    var lol = document.getElementById("hisstuff");
    var loltext = document.createElement("div");
    var loltextt = document.createTextNode("I - Change island \nO - Get coins \nP - Change skin");
    loltext.appendChild(loltextt);
    var controlsText = document.createTextNode("Hacks");
    controls.appendChild(controlsText);
    box.appendChild(controls);
    box.appendChild(loltext);
}

function hehe(e){
    if(e.keyCode == "79"){
        var a = prompt("How many coins would you like?");
        if(isNaN(a)){
            window.alert("Please enter a number next time");
        }else{
            localStorage.setItem("coinsOwned", a);
            document.getElementById("homepage-booty").innerHTML = a;
            document.getElementById("skin-popup-booty").innerHTML = a;
            window.location.reload(false);
        }
    }else if(e.keyCode == "80"){
        var b = prompt("What character would you like? 1-35");
        if(isNaN(b) || b < 1 || b > 35){
            window.alert("Please put a number from 1-35 next time");
        }else if(b != null || b != undefined || b != ""){
            localStorage.setItem("playerSkin", b);
            window.location.reload(false);
        }
    }else if(e.keyCode == "73"){
        var c = prompt("What island would you like? \n1 - Tortuga \n2 - Beach \n3 - Easter \n4 - Wrack \n5 - Volcano \n6 - Village");
        if(c == 1){
            localStorage.setItem("playerXP", 0);
            window.location.reload(false);
        }else if(c == 2){
            localStorage.setItem("playerXP", 200);
            window.location.reload(false);
        }else if(c == 3){
            localStorage.setItem("playerXP", 1600);
            window.location.reload(false);
        }else if(c == 4){
            localStorage.setItem("playerXP", 4200);
            window.location.reload(false);
        }else if(c == 5){
            localStorage.setItem("playerXP", 8300);
            window.location.reload(false);
        }else if(c == 6){
            localStorage.setItem("playerXP", 20000);
            window.location.reload(false);
        }else if(c != (1 || 2 || 3 || 4 || 5)){
            window.alert("Please put in a number from 1 to 5.");
        }
    }
}