Open www.instagram.com in Chrome or Edge Browser on computer.
Sign in to your instagram account.
Go to your profile page. By clicking on "Profile"
Click on "followers"
Now, Open console. To open the console there may be different procedure for different browser.
To open the developer console window on Chrome, use the keyboard shortcut Cmd-Shift-J on Windows or Cmd-Option-J on a Mac.
To open the console on Edge, hit F12 to access the Developer Tools. Once in the Developer Tools, navigate to the Console tab.
Now, Observe the responses in console.
If you got the message `Success: I got 247 of your followers. If the number is correct please do not refresh the page and proceed for the next step. Otherwise repeat this step again.`
Copy the following code and run in the developer console.
function repeater() {
setTimeout(() => {
console.log("this is the first message");
document.querySelector("._aano").scrollTop = document.querySelector("._aano").scrollHeight;
let elementLoader = document.querySelector("._aanq");
if (elementLoader && elementLoader.scrollHeight !== null) {
repeater();
} else {
console.log('dd');
document.querySelector(".x1yutycm").parentElement.setAttribute("class", "my-following");
var slides = document.getElementsByClassName("my-following")[0];
var children = slides.children;
for (var i = 0; i < children.length; i++) {
var child = children[i].children[0].children[0].children[0].children[1].children[0].children[0].children[0].innerText;
//console.log(child.split('\n')[0])
if (arr_followers.includes(child)) {
if(children[i].children[0]){
children[i].children[0].remove();
}
console.log(child + " " +i+ " is following. and remove from list.")
} else {
console.log(child + " is not")
}
}
console.log("","Now, you can unfollow those which as in the following list. Those people are not following you.");
}
}, 2000);
}
repeater();
Now you can unfollow the people shown in following list.
Post a Comment
0 Comments