Skip to content

Instantly share code, notes, and snippets.

View dante4rt's full-sized avatar
🏠
Working from home

Rama dante4rt

🏠
Working from home
View GitHub Profile
@dante4rt
dante4rt / linkedin-unfollow-all.js
Created April 17, 2025 13:20
This JavaScript snippet automates the process of unfollowing all users on LinkedIn's following page (https://www.linkedin.com/mynetwork/network-manager/people-follow/following/). It continuously checks for "Following" buttons, clicks them to unfollow users, and scrolls to load more users until all users are unfollowed.
(function unfollowAll() {
const followingButtons = document.querySelectorAll("span.artdeco-button__text");
if (followingButtons.length === 0) {
console.log("No more 'Following' buttons found.");
return;
}
followingButtons.forEach((button) => {
if (button.innerText === "Following") {

Keybase proof

I hereby claim:

  • I am dante4rt on github.
  • I am ganteng (https://keybase.io/ganteng) on keybase.
  • I have a public key whose fingerprint is E0A8 AACD 7E9F 766F 17F5 A45C BB54 6878 07C0 1BFC

To claim this, I am signing this object: