Trong quá trình lướt Facebook, đôi khi những bài viết từ người lạ, nhóm hay fanpage làm bạn cảm thấy khó chịu vì nó xuất hiện liên tục. Bạn có thể bỏ theo dõi hàng loạt những người bạn không quen biết, những bài đăng từ fanpage theo cách dưới đây nhé.
Bỏ theo dõi hàng loạt trên facebook
Bước 1: Truy cập vào đường dẫn sau bằng trình duyệt web:
https://www.facebook.com/username/following
thay username bằng username của bạn.
Hoặc bạn vào Facebook bằng trình duyệt > vào trang cá nhân > chọn Bạn bè (nếu bạn không thấy tab Bạn bè thì hãy chọn Xem thêm) > Đang theo dõi
Bước 2: Tại đây, bạn nhấn nút F12 > chọn vào Console > Nhấn tổ hợp phím Ctrl+L để xóa sạch cho dễ nhìn.
Bước 3: Bạn copy đoạn mã bên dưới và dán vào Console sau đó nhấn Enter và ngồi đợi thôi. Đoạn mã này tự động bỏ theo dõi hàng loạt giúp bạn.
Lưu ý: Sau khi nhấn enter thì bạn không thao tác trên tab này.
function sleep(s){return new Promise(resolve=>setTimeout(resolve,s*1000))}nfunction getElementByXpath(path){return document.evaluate(path,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}nasync function unFolow(){var countItem=getElementByXpath('/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div/div/div[4]/div/div/div/div/div/div/div/div[2]/div[3]').childNodes.length;console.log('%c----------------------------------------------------','color: yellow;');console.log('%cĐã tìm thấy '+countItem+' tài khoản đang theo dõi','color: yellow;');console.log('%c----------------------------------------------------','color: yellow;');for(var i=1;i<=countItem;i++){try{var name=getElementByXpath('/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div/div/div[4]/div/div/div/div/div/div/div/div[2]/div[3]/div['+i+']/div[2]/div[1]/a/span').textContent;console.log('----------------------------------------------------');console.log('| '+i+'.Bắt đầu huỷ theo dõi '+name);var menuXpath='/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[1]/div[1]/div/div/div[4]/div/div/div/div/div/div/div/div[2]/div[3]/div['+i+']/div[3]/div/div/div';getElementByXpath(menuXpath).click();await sleep(3);var unfrXpath='/html/body/div[1]/div/div[1]/div/div[3]/div/div/div[2]/div/div/div[1]/div[1]/div/div/div/div/div/div/div[1]/div/div[1]';var unfBtn=getElementByXpath(unfrXpath);unfBtn.click();console.log('| Đã huỷ theo dõi '+name);console.log('----------------------------------------------------');await sleep(3)}catch(e){}}nconsole.log('%cDone','color: red; font-size: 22px;');await sleep(3)}nasync function getAllFollower(){var oldHeight=0;var checkScrollToEnd=!1;do{window.scrollTo(0,document.body.scrollHeight);if(oldHeight==document.body.offsetHeight){checkScrollToEnd=!0}noldHeight=document.body.offsetHeight;await sleep(3)}while(!checkScrollToEnd)}nasync function autoUnFollow(){console.log('%cBỏ theo dõi những tài khoản không là bạn bè','color: red; font-size: 28px;');console.log('%cKhông thao tác trên tab này trong quá trình chạy','color: red; font-size: 22px;');await sleep(1);await getAllFollower();await unFolow();window.open('https://tuannda.dev','_blank').focus()}nautoUnFollow()