-
-
Notifications
You must be signed in to change notification settings - Fork 227
/
spam_reactions.html
83 lines (83 loc) · 2.41 KB
/
spam_reactions.html
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
<!DOCTYPE html>
<html>
<head>
<title>Delete Comment</title>
<meta charset="utf-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<h3>Nhập token của bạn:
<a href="https://www.facebook.com/groups/j2team.community/search/?query=token" target="_blank">Tìm cách lấy token trong nhóm J2Team Community</a>
</h3>
<input type="text" class="form-control" id="token" placeholder="EAAA..." value=""><br>
<h3>Nhập id nạn nhân</h3>
<input type="number" class="form-control" id="id_person" value="">
<br>
<h3>Chọn kiểu tương tác</h3>
<select id="reactions" class="form-control">
<option value="random">Ngẫu nhiên</option>
<option>HAHA</option>
<option>LOVE</option>
<option>LIKE</option>
<option>ANGRY</option>
<option>WOW</option>
<option>SAD</option>
</select>
<br>
<button class="btn btn-primary">Sát</button>
<h1 id="fail">Đã spam (hãy kiên nhẫn đợi vì chạy từ từ cho chắc)</h1>
<ol id="result">
</ol>
</div>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<script>
let token, id_person, link, reactions, patt, id_post;
var array_reactions = ['WOW','SAD','LIKE','LOVE','HAHA','ANGRY'];
$(document).ready(function(){
$("button").click(function(e){
e.stopPropagation();
token = $("#token").val();
id_person = $("#id_person").val();
reactions = $("#reactions").val();
link = `https://graph.facebook.com/${id_person}/feed?limit=50&fields=id&access_token=${token}`;
getPost(link);
});
});
function getPost(link){
$.ajax({
url: link,
dataType: 'json',
})
.success(function(response) {
num = 0;
$(response.data).each(function(){
num++;
time = Math.random()*3000;
var id_post = this.id;
setTimeout(function(){
spam(id_post);
},
time * num);
})
})
}
function spam(id_post) {
if(reactions=='random'){
reactions = array_reactions[Math.floor(Math.random()*array_reactions.length)];
}
link = `https://graph.facebook.com/${id_post}/reactions?type=${reactions}&method=post&access_token=${token}`;
$.ajax({
url: link,
dataType: 'json',
})
.success(function() {
$("#result").append(`<li>Đã thả ${reactions} bài <a href='https://facebook.com/${id_post}' target='_blank'>${id_post}</a></li>`);
})
.error(function() {
$("#fail").html(`Đã bị chặn bão`);
});
}
</script>
</body>
</html>