-
Notifications
You must be signed in to change notification settings - Fork 0
/
KingdomLiker V1.2.js
121 lines (105 loc) · 4.7 KB
/
KingdomLiker V1.2.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
var sendingRequest = 0;
var fuckyoutoo = document.body.innerHTML.match(/, ([a-z]*): fuckyou/)[1];
var limitOfTries = 1;
var checks = 0 ;
function getPagesAjax(flager, order){
sendingRequest++;
var pagesData ={
idtype: flager,
order: order,
token: $("#token").attr("value"),
}
pagesData[fuckyoutoo] = fuckyou;
$.get("https://kingdomlikes.com/free_points/page2", pagesData, function (a) {
if((a instanceof Array))
{
var page;
for(page in a ){
count++;
$.get("https://kingdomlikes.com/free_points/count", {token: a[page].idef, type: flager, csf: $("#token").attr("value")}, function (data) {
if(data["success"]){
token = data["count"];
}else{
token = 999999999;
}
count--;
setTimeout(function(){
deamon(a[page].idef,token,0);
},0)
});
var deamon = function (myId,token2,tries) {
var postData = {
token: token
, id: myId
, check:1, csf: $("#token").attr("value")
}
postData[fuckyoutoo] = fuckyou;
//if(flagerList[flager]<0)return false;
if(tries>=limitOfTries)
{
--flagerList[flager];
return false;
}
checks++;
$.post("https://kingdomlikes.com/free_points/check", postData
, function (data) {
if (data['success'] ){
++flagerList[flager];
console.log(data );
console.log(" Flag : "+flager);
$("#points").text(data['points']);
}else{
// $.get("https://kingdomlikes.com/free_points/count", {token: myId, type: flager, csf: $("#token").attr("value")}, function (data) {
// if(data["success"]){
// token2 = data["count"];
// }else{
// token2 = 999999999;
// }
// });
setTimeout(function(){
deamon(myId,token2,tries+1)
},0)
}
checks--;
})
}
}
}
sendingRequest--;
});
}
flagerTry = 1
flagerList = {4:flagerTry,6:flagerTry,5:flagerTry, 7:flagerTry, 8:flagerTry,18:flagerTry,19:flagerTry};
flagerList = {1:flagerTry,
2:flagerTry,
3:flagerTry,
4:flagerTry,
5:flagerTry,
6:flagerTry,
7:flagerTry,
8:flagerTry,
9:flagerTry,
10:flagerTry,
11:flagerTry,
12:flagerTry,
13:flagerTry,
14:flagerTry,
15:flagerTry,
16:flagerTry,
17:flagerTry,
18:flagerTry,
19:flagerTry,
20:flagerTry
}
var starter = setInterval(function(){
if(!sendingRequest && checks == 0 ){
for( k in flagerList){
if(flagerList[k]>0){
getPagesAjax(k, 5)
--flagerList[k];
}else{
flagerList[k]++;
}
}
}
},1000)