Skip to content

Instantly share code, notes, and snippets.

@lelinhtinh
Created May 25, 2017 18:02
Show Gist options
  • Save lelinhtinh/89da3d143447d70b65bc081c6d05e066 to your computer and use it in GitHub Desktop.
Save lelinhtinh/89da3d143447d70b65bc081c6d05e066 to your computer and use it in GitHub Desktop.
Tìm thành viên không có tên trong nhóm Facebook
if (document.getElementById('fb-memberlist-hidden') === null) {
var head = document.head,
style = document.createElement('style');
style.type = 'text/css';
style.id = 'fb-memberlist-hidden';
style.appendChild(document.createTextNode('._51m-{display:none}.mtm{margin-top:0}'));
head.appendChild(style);
}
function shyUserFinder() {
var list = [].entries.call(document.querySelectorAll('img.img[aria-label*="‎"]'));
for (item of list) {
item[1].parentNode.parentNode.parentNode.parentNode.parentNode.style.display = 'block';
};
}
shyUserFinder();
document.addEventListener('click', function(e) {
if (e.target.className === 'pam uiBoxLightblue uiMorePagerPrimary') shyUserFinder();
}, true);
@lelinhtinh
Copy link
Author

Vào trang quản lý thành viên (nên chọn sắp xếp theo Ngày tham gia).

Mở Dev Tool của trình duyệt (F12 > Console).
Chạy code ở trên.

Nhấn nút Xem thêm để tìm thành viên không có tên (do dùng ký tự ­).

image

@lelinhtinh
Copy link
Author

Đoạn script này giúp auto click nút Xem thêm mỗi 1.5 giây nhưng mình không đưa vào, vì nếu xui có thể bị thuật toán của Facebook nó phát hiện và khóa tài khoản.

setInterval(function() {
    document.querySelector('.uiMorePagerPrimary').click();
}, 1500);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment