-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
fb_getAllUidFromFbSearch.js
45 lines (41 loc) · 1.22 KB
/
fb_getAllUidFromFbSearch.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
import { BADGES } from "./helpers/badge.js";
export default {
icon: '<i class="fa-solid fa-magnifying-glass fa-lg"></i>',
name: {
en: "Get all fb User ID from search page",
vi: "Lấy tất cả fb user ID từ trang tìm kiếm",
},
description: {
en: "Get id of all user from facebook search page",
vi: "Lấy id của tất cả user từ trang tìm kiếm người dùng facebook",
},
badges: [BADGES.new],
changeLogs: {
"2024-04-27": "x100 faster api",
},
whiteList: ["https://*.facebook.com/*"],
pageScript: {
onClick: async function () {
const { getUidFromUrl } = await import("./fb_GLOBAL.js");
let list_a = Array.from(
document.querySelectorAll("a[role='presentation']")
);
let uids = [];
for (let a of list_a) {
let l = a.href;
let uid = l.split("profile.php?id=")[1];
if (uid) {
uids.push(uid);
console.log(uid);
continue;
}
let name = l.split("facebook.com/")[1];
uid = await getUidFromUrl(l);
uids.push(uid);
console.log(name, uid);
}
console.log(uids);
prompt(`Tìm được ${uids.length} UID, Copy ngay: `, uids.join("\n"));
},
},
};