Skip to content

Instantly share code, notes, and snippets.

@xeloader
Last active October 15, 2021 04:08
Show Gist options
  • Save xeloader/6adeb2a009dbd95279a119281d6173eb to your computer and use it in GitHub Desktop.
Save xeloader/6adeb2a009dbd95279a119281d6173eb to your computer and use it in GitHub Desktop.
Unfollow everyone on LinkedIn

Unfollow everyone on Social Media

Unfollow everyone on LinkedIn

LinkedIn is even more clickbait than Facebook nowadays. Adios. 💣

Visit https://www.linkedin.com/feed/following/

Scroll down to load all of your contacts

Open developer console, run the following

$('.follow.is-following').trigger('click');

Reverse the unfollows by visiting https://www.linkedin.com/feed/followers/

and run the following in the developer console

$('.follow:not(.is-following)').trigger('click');

Unfollow everyone on Twitter

Twitter, hejdå friend. 💔

Visit https://twitter.com/following

Scroll down to load all of your follows

Open developer console, run the following

var oldies = $('.ProfileCard .ProfileCard-screennameLink').text().replace(/\s/g, "").split("@").join("\n@").split("\n"); // for backup reasons
var unfollowBtns = $('.ProfileCard .following .follow-button > button.following-text');
unfollowBtns.trigger('click');

Reversing the unfollows by doing

var followBtns = $('.ProfileCard .not-following .follow-button > button.follow-text');
followBtns.trigger('click');
@richardARPANET
Copy link

@xeloader this no longer works. (error trigger is not defined).

This will, however:

// Unfollow all
Array.from(document.querySelectorAll('.follow.is-following')).forEach(button=>button.click())

// Follow all
Array.from(document.querySelectorAll('.follow:not(.is-following)')).forEach(button=>button.click())

@Varun-garg
Copy link

Varun-garg commented Aug 10, 2021

also first, use this script along to scroll till end of following

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