-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmonkey-script.user.js
More file actions
48 lines (44 loc) · 1.75 KB
/
monkey-script.user.js
File metadata and controls
48 lines (44 loc) · 1.75 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// ==UserScript==
// @name Pathery Assist
// @namespace http://use.i.E.your.homepage/
// @version 0.1
// @description Assistance for playing Pathery
// @match https://www.pathery.com/home
// @match https://www.pathery.com/mapeditor*
// @match https://www.pathery.com/scores*
// @match https://www.pathery.com/
// @match https://beta.pathery.net/home
// @match https://beta.pathery.net/mapeditor*
// @match https://beta.pathery.net/scores*
// @match https://beta.pathery.net/
// @match http://beta.pathery.net/home
// @match http://beta.pathery.net/mapeditor*
// @match http://beta.pathery.net/scores*
// @match http://beta.pathery.net/
// @match https://blue.pathery.net/home
// @match https://blue.pathery.net/mapeditor*
// @match https://blue.pathery.net/scores*
// @match https://blue.pathery.net/
// @match http://blue.pathery.net/home
// @match http://blue.pathery.net/mapeditor*
// @match http://blue.pathery.net/scores*
// @match http://blue.pathery.net/
// @copyright 2012+, You
// @grant none
// ==/UserScript==
// IF YOU'RE NOT RUNNING A SERVER:
var url = 'https://raw.githubusercontent.com/WuTheFWasThat/midnighttherapy/master/pathery-full.js';
// ALTERNATIVELY, IF YOU ARE RUNNING A SERVER:
//mt_local_testing = true;
//mt_url='http://127.0.0.1:2222/' // OR WHATEVER YOUR SERVER IS
//var url = mt_url + 'pathery-client.js'
var xhr = new XMLHttpRequest();
xhr.open('GET', url);
xhr.onload = function() {
if (xhr.status === 200) {
var child = document.createElement('script');
child.text = xhr.responseText
document.head.appendChild(child);
} else { alert('Request failed. Returned status of ' + xhr.status); }
};
xhr.send();