-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathXHordes.user.js
26 lines (26 loc) · 992 Bytes
/
XHordes.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// ==UserScript==
// @name XHordes
// @namespace http://tampermonkey.net/
// @version 0.4
// @description A modded version of the Hordes.io client
// @author LegusX
// @match http://hordes.io/
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_xmlhttpRequest
//@run-at document-start
// ==/UserScript==
(function(){
window.stop();
GM_xmlhttpRequest({
method: 'GET',
url: "http://hordes.io",
onload: function(ev) {
document.open();
let index = ev.responseText.replace('<script src="script/dist.min.js"></script>', '<script src="https://cdn.rawgit.com/LegusX/xhordes/master/src/1-3/xhordes.js"></script> ');
index = index.replace('<link rel="stylesheet" href="gamestyles.css">', '<link rel="stylesheet"href="https://cdn.rawgit.com/LegusX/xhordes/505b3c17/src/1-3/xhordes.css">');
document.write(index);
document.close();
}
});
})();