Evoworld.io ViewMod

Evoworld.io cheat

// ==UserScript==
// @name         Evoworld.io ViewMod
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Evoworld.io cheat
// @author       You
// @license      MIT
// @match        https://evoworld.io/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=evoworld.io
// @grant        none
// ==/UserScript==

(function() {
let overlayHTML = `
<div id="cheat">
<br><div class="button2"  onclick="game.me.getAllPositions =   function() {      return {
            'x': this['position']['x'],
            'y': this['position']['y'],
            'center': {
                'x': this['position']['x'] + this['width'] ,
                'y': this['position']['y'] + this['height']
            },
            'right': this['position']['x'] + this['width'],
            'left': this['position']['x'],
            'top': this['position']['y'] + this['height'],
            'bottom': this['position']['y']
        };}">Normal view</div>
<div class="button2"  onclick="game.me.getAllPositions =   function() {      return {
            'x': this['position']['x'],
            'y': this['position']['y'],
            'center': {
                'x': this['position']['x'] + this['width'] + 200 ,
                'y': this['position']['y'] + this['height']
            },
            'right': this['position']['x'] + this['width'],
            'left': this['position']['x'],
            'top': this['position']['y'] + this['height'],
            'bottom': this['position']['y']
        };}">Right view</div>
<div class="button2"  onclick="game.me.getAllPositions =   function() {      return {
            'x': this['position']['x'],
            'y': this['position']['y'],
            'center': {
                'x': this['position']['x'] + this['width'] - 200 ,
                'y': this['position']['y'] + this['height']
            },
            'right': this['position']['x'] + this['width'],
            'left': this['position']['x'],
            'top': this['position']['y'] + this['height'],
            'bottom': this['position']['y']
        };}">Left view</div>
<div class="button2"  onclick="game.me.getAllPositions =   function() {      return {
            'x': this['position']['x'],
            'y': this['position']['y'],
            'center': {
                'x': this['position']['x'] + this['width'] ,
                'y': this['position']['y'] + this['height'] - 200
            },
            'right': this['position']['x'] + this['width'],
            'left': this['position']['x'],
            'top': this['position']['y'] + this['height'],
            'bottom': this['position']['y']
        };}">Bottom view</div>
<div class="button2"  onclick="game.me.getAllPositions =   function() {      return {
            'x': this['position']['x'],
            'y': this['position']['y'],
            'center': {
                'x': this['position']['x'] + this['width'] ,
                'y': this['position']['y'] + this['height'] + 200
            },
            'right': this['position']['x'] + this['width'],
            'left': this['position']['x'],
            'top': this['position']['y'] + this['height'],
            'bottom': this['position']['y']
        };}">Top view</div>
</div>

<style>
#cheat {
    z-index: 10;
    position: absolute;
    top: 320px;
    left: 7px;
    transition: 0.5s;
    }
.button2 {
  width: 85px;
  background-color: white;
  border:2px solid black;
}

</style>
`
function get(x){ return document.getElementById(x); };

let overlay = document.createElement("div");
    overlay.innerHTML = overlayHTML;
    document.body.appendChild(overlay);
      document.body.appendChild(overlay);
    let acc = get("accordian"),box = get ("cheat");box.style.opacity = "1"
    document.addEventListener('keydown', (event) => {if (event.keyCode == 89) {
    let opac = box.style.opacity; if(opac == 1) {
    box.style.opacity = "0";}else {box.style.opacity = "1"}}})
     alert('Open/close ViewMod on y/insert')
 }
)();