HSLO BOTS SCRIPT

HSLO WITH AGAR BOTS

// ==UserScript==
// @name         HSLO BOTS SCRIPT
// @description  HSLO WITH AGAR BOTS
// @version      1.0.10
// @author       2CL & test1145
// @match        *://agar.io/*
// @require      http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js
// @run-at       document-start
// @grant        none
// @namespace https://greasyfork.org/users/323769
// ==/UserScript==
if (location.host === 'agar.io' && location.href !== 'https://agar.io/hslo') {
    location.href = 'https://agar.io/hslo';
    return;
}

const HSLO = new class {
    constructor() {
        this.method = 'GET';
        this.URL = 'https://saigo.hslo.io/';
        this.HTML = ``;
        this.date = Date.now();
    }

    load() {
        this.setMessage();
        this.fetch();
    }

    setMessage() {
        document.body.innerHTML = "LOADING... PLEASE WAIT..";
    }

    fetch() {
        const request = new XMLHttpRequest();
        request.open(this.method, this.URL, true);
        request.onload = () => {
            this.HTML = request.responseText;
            this.write();
        };
        request.onerror = () => {
            document.body.innerHTML = "<div style='width: 100%; text-align: center; font-size: 24px; font-family: sans-serif;'>Failed to fetch HSLO files.</div>";
        }
        request.send();
    }
    replace(hello) {
        return hello.replace(/<script\s+src="https\:\/\/saigo\.hslo\.io\/saigo\.js?.*"><\/script>/, `
<script src="http://ex-script.com/fstyle/hslo/nelsc.js?d=${this.date}"></script>
<script>
window.target = null;
window.playerPos = {x: 0, y:0};
window.encKey = 0;
window.playerCells = null;
</script>
<script src="http://ex-script.com/fstyle/hslo/hslo.js?d=${this.date}"></script>
<script>
setGUI()
setGUIStyle()
setGUIEvents()
loadUI()
</script>
`);
    }

    write() {
        document.open();
        document.write(this.replace(this.HTML));
        document.close();
    }
}

HSLO.load();