I recently wanted to follow everyone whom my friends follow. But it was quite boring to go through the list and click on the Follow
button. So I decided to do something like this.
- Go to
Inspect
in your browser - Go to the Followers page
- Run this command on console
var temp = document.getElementsByClassName('btn-sm');
for(let i = 0; i<temp.length; i+=2) {
temp[i].click();
}
- Go to
Inspect
in your browser - Go to the My Network page
- Run this command on console
var temp = document.getElementsByClassName('artdeco-button--secondary');
for(let i = 0; i<temp.length; i++) {
temp[i].click();
}