This repository has been archived by the owner on Jul 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinject.js
143 lines (138 loc) · 8.66 KB
/
inject.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
var check_url = location.href;
var groups_members = check_url.match(/members/g);
var groups = check_url.match(/groups/g);
if (groups_members == "members") {
var get_url = document.querySelectorAll("div.gs1a9yip.ow4ym5g4.auili1gw.rq0escxv.j83agx80.cbu4d94t.buofh1pr.g5gj957u.i1fnvgqd.oygrvhab.cxmmr5t8.hcukyx3x.kvgmc6g5.tgvbjcpo.hpfvmrgz.rz4wbd8a.a8nywdso.l9j0dhe7 > div > div > div:nth-child(1) > span > span > div > a");
var token = prompt("请输入", "");
new_page = window.open('');
for (var k = 0; k < get_url.length; k++) {
(function(k) {
setTimeout(async function() {
var facebookID = get_url[k].outerHTML.match(/(?<=href="\/groups\/.*?\/user\/).*?(?=\/")/g);
let response1 = await fetch(`https://graph.facebook.com/` + facebookID + `?fields=location,hometown,name,languages&access_token=` + token + `&pretty=0`)
let text1 = await response1.text()
try {
try {
var city = text1.match(/(?<=location":{"id":".*?","name":").*?(?="},"hometown)/g)[0];
} catch {
try {
var city = text1.match(/(?<=location":{"id":".*?","name":").*?(?="},"name)/g)[0];
} catch {
var city = "未知";
}
}
var city_str = eval(`"` + city + `"`);
try {
var hometown = text1.match(/(?<=hometown":{"id":".*?","name":").*?(?="},"name)/g)[0];
} catch {
var hometown = "未知";
}
var hometown_str = eval(`"` + hometown + `"`);
try {
var language = text1.match(/(?<=languages":\[).*?(?=])/g)[0].replace(/id":".*?"|,|name|"|:/g,"");
} catch {
var language = "未知";
}
var language_str = eval(`"` + language + `"`);
} catch {}
new_page.document.write('<table><tbody><tr><td><img src="https://graph.facebook.com/' + facebookID + '/picture?width=999&access_token=' + token + '" style="width:200;"></td><td>' + [k + 1] + '</td><td><a href="https://www.facebook.com/' + facebookID + '" target="_blank">' + facebookID + '</a></td><td>所在地:' + city_str + '</td><td>家乡:' + hometown_str + '</td><td>语言:'+language_str+'</td></tr></tbody></table>');
}, 1500 * k);
})(k);
}
} else if (groups == "groups") {
var get_userid = document.querySelectorAll("div.gs1a9yip.ow4ym5g4.auili1gw.rq0escxv.j83agx80.cbu4d94t.buofh1pr.g5gj957u.i1fnvgqd.oygrvhab.cxmmr5t8.hcukyx3x.kvgmc6g5.tgvbjcpo.hpfvmrgz.rz4wbd8a.a8nywdso.l9j0dhe7.du4w35lb.rj1gh0hx > div > div > div:nth-child(1) > span > div > a");
var token = prompt("请输入", "");
new_page = window.open('');
for (var k = 0; k < get_userid.length; k++) {
(function(k) {
setTimeout(async function() {
var facebookID = get_userid[k].outerHTML.match(/(?<=lrazzd5p" href="\/groups\/.*?\/user\/).*?(?=\/.__cf|.amp)/g);
let response1 = await fetch(`https://graph.facebook.com/` + facebookID + `?fields=location,hometown,name,languages&access_token=` + token + `&pretty=0`)
let text1 = await response1.text()
try {
try {
var city = text1.match(/(?<=location":{"id":".*?","name":").*?(?="},"hometown)/g)[0];
} catch {
try {
var city = text1.match(/(?<=location":{"id":".*?","name":").*?(?="},"name)/g)[0];
} catch {
var city = "未知";
}
}
var city_str = eval(`"` + city + `"`);
try {
var hometown = text1.match(/(?<=hometown":{"id":".*?","name":").*?(?="},"name)/g)[0];
} catch {
var hometown = "未知";
}
var hometown_str = eval(`"` + hometown + `"`);
try {
var language = text1.match(/(?<=languages":\[).*?(?=])/g)[0].replace(/id":".*?"|,|name|"|:/g,"");
} catch {
var language = "未知";
}
var language_str = eval(`"` + language + `"`);
} catch {}
new_page.document.write('<table><tbody><tr><td><img src="https://graph.facebook.com/' + facebookID + '/picture?width=999&access_token=' + token + '" style="width:200;"></td><td>' + [k + 1] + '</td><td><a href="https://www.facebook.com/' + facebookID + '" target="_blank">' + facebookID + '</a></td><td>所在地:' + city_str + '</td><td>家乡:' + hometown_str + '</td><td>语言:'+language_str+'</td></tr></tbody></table>');
}, 1500 * k);
})(k);
}
} else {
var token = prompt("请输入访问令牌", "");
var person = prompt("请输入链接", "");
var url = person.match(/https:\/\/[A-Za-z0-9&/?=.]+[A-Za-z0-9/]/g);
new_page = window.open('');
for (var k = 0; k < url.length; k++) {
(function(k) {
setTimeout(async function() {
let response = await fetch(url[k])
let text = await response.text()
try {
let facebookID = text.match(/(?<="userID":")([0-9]+)/g)[0];
let response1 = await fetch(`https://graph.facebook.com/` + facebookID + `?fields=location,hometown,name,languages,religion,education&access_token=` + token + `&pretty=0`)
let text1 = await response1.text()
try {
try {
var city = text1.match(/(?<=location":{"id":".*?","name":").*?(?="},"hometown)/g)[0];
} catch {
try {
var city = text1.match(/(?<=location":{"id":".*?","name":").*?(?="},"name)/g)[0];
} catch {
var city = "未知";
}
}
var city_str = eval(`"` + city + `"`);
try {
var hometown = text1.match(/(?<=hometown":{"id":".*?","name":").*?(?="},"name)/g)[0];
} catch {
var hometown = "未知";
}
var hometown_str = eval(`"` + hometown + `"`);
try {
var language = text1.match(/(?<=languages":\[).*?(?=])/g)[0].replace(/id":".*?"|,|name|"|:/g,"");
} catch {
var language = "未知";
}
var language_str = eval(`"` + language + `"`);
try {
var religion = text1.match(/(?<=religion":").*?(?=")/g)[0];
} catch {
var religion = "未知";
}
var religion_str = eval(`"` + religion + `"`);
try {
var college = text1.match(/(?<=education":\[).+(?="type":"College")/g)[0].replace(/^{|id":".*?"|,|name|:|"school"|"year"|,|"|type":".*?"|concentration":\[.*?\]/g,"").replace(/}{|{[0-9].*?[0-9]}|classes\[.*?\]|}\]|degree/g,"");
} catch {
var college = "未知";
}
var college_str = eval(`"` + college + `"`);
} catch {}
new_page.document.write('<table><tbody><tr><td><img src="https://graph.facebook.com/' + facebookID + '/picture?width=999&access_token=' + token + '" style="width:200;"></td><td>' + [k + 1] + '</td><td><a href="https://www.facebook.com/' + facebookID + '" target="_blank">' + facebookID + '</a></td><td>所在地:' + city_str + '</td><td>家乡:' + hometown_str + '</td><td>信仰:'+religion_str+'</td><td>语言:'+language_str+'</td><td>大学:'+college_str+'</td></tr></tbody></table>');
} catch {
new_page.document.write('<table><tbody><tr><td>'+[k+1]+'</td><td></td></tr></tbody></table>');
}
}, 1500 * k);
})(k);
}
}
https://graph.facebook.com/100006320823557?fields=location,hometown,name,languages,religion&access_token=EAAAAZAw4FxQIBALpnmCYSy7zXIAxzG8jBUXD9lPRhyB15cPC3oH66LrTmh09MNOzQH88oyAwbq7pBZAybmXvMFZALMDC7V3MtNATASwAa6oZB5KUi7JeflZB1uJAPeR4bgEU6MlmFmzsC3IHCC7419kQaOikOQBgotzck6ECDSMaTVrCwC1etk0JibQeZCZB1MZD&pretty=0