Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 16 additions & 46 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,59 +37,29 @@ Install `Live Server` extension then you can run local web server by one click.
// ==UserScript==
// @name HSLO Endymion (Debug)
// @description HSLO Endymion The Ultimate Multiboxing Experience
// @version 1.0
// @author test114514
// @match *://agar.io/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js
// @author test114514
// @run-at document-start
// @grant none
// @grant GM_xmlhttpRequest
// @version 1.0.2
// @connect localhost
// ==/UserScript==

if (location.host === 'agar.io' && location.href !== 'https://agar.io/hslodev') {
location.href = 'https://agar.io/hslodev';
return;
if (location.host === "agar.io" && location.pathname === "/") {
window.stop();
location.href = "https://agar.io/hslodev" + location.hash;
return;
}

const HSLO = new class {
constructor() {
this.method = 'GET';
this.URL = "http://localhost:5500/dist/";
this.HTML = ``;
this.date = Date.now();
}

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

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

fetch() {
const request = new XMLHttpRequest();
request.open(this.method, this.URL + "?date=" + this.date, 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;
GM_xmlhttpRequest({
method: 'GET',
url: 'http://localhost:5500/dist/index.html?v=' + Math.random(),
onload: function(data) {
document.open();
document.write(data.responseText);
document.close();
}

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

## Build [PROD]
Expand Down
4 changes: 2 additions & 2 deletions src/components/Information.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import iziToast from "iziToast";
import iziToast from "izitoast";
import 'izitoast/dist/css/iziToast.min.css';

iziToast.settings({
Expand Down Expand Up @@ -38,4 +38,4 @@ setTimeout(() => {
}]
]
});
}, 3000);
}, 3000);