-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuploadedne-anti-timer@scriptish.user.js
More file actions
48 lines (41 loc) · 1.44 KB
/
uploadedne-anti-timer@scriptish.user.js
File metadata and controls
48 lines (41 loc) · 1.44 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==
// @id uploaded.net-8c688a90-3234-449c-877e-13d1842f7df7@scriptish
// @name Uploaded.net anti timer
// @version 0.9c
// @history 0.9b Beta version
// @namespace https://openuserjs.org/scripts/Black_Sun/anti_timer
// @author Black_Sun
// @include http://uploaded.net/file/*
// @unwrap
// @run-at document-end
// @grant none
// @updateURL https://openuserjs.org/install/Black_Sun/anti_timer.user.js
// @downloadURL https://openuserjs.org/install/Black_Sun/anti_timer.user.js
// ==/UserScript==
loadXMLDoc()
Download.freeslot=true;
Download.captcha(true);
function loadXMLDoc() {
var xmlhttp;
if (window.XMLHttpRequest) {
xmlhttp = new XMLHttpRequest();
} else {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == XMLHttpRequest.DONE ) {
if(xmlhttp.status == 200){
document.getElementById("myDiv").innerHTML = xmlhttp.responseText;
}
else if(xmlhttp.status == 400) {
alert('There was an error 400')
}
else {
alert('something else other than 200 was returned')
}
}
}
xmlhttp.open("POST", "/io/ticket/slot/"+location.href.split("/")[4], true);
xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
xmlhttp.send("z=1");
}