Skip to content

Instantly share code, notes, and snippets.

@fmeyer
Last active March 3, 2026 18:50
Show Gist options
  • Select an option

  • Save fmeyer/f074f3d997e1d326acea481682ac26ae to your computer and use it in GitHub Desktop.

Select an option

Save fmeyer/f074f3d997e1d326acea481682ac26ae to your computer and use it in GitHub Desktop.
Unfollow everyone on linkedin
// Go to here https://www.linkedin.com/feed/following/?filterType=connection
// open the chrome dev tools console
// paste the following
// go grab a cup of tea
// get rid of all life coach from linkedin
var buttons = $('button'), interval = setInterval(function() {
var btn = $('.is-following');
console.log('Clicking:', btn);
btn.click();
if (buttons.length === 0) {
clearInterval(interval);
}
}, 1000);
function pageScroll() {
window.scrollBy(0,100);
scrolldelay = setTimeout(pageScroll,10);
}
pageScroll();
@levkk
Copy link

levkk commented Mar 3, 2026

Doesn't seem to work currently, the button HTML changed:

<button aria-label="Click to stop following <NAME HERE>" id="ember82" class="artdeco-button artdeco-button--muted artdeco-button--2 artdeco-button--secondary ember-view"><!---->
<span class="artdeco-button__text">
    Following
</span></button>

I think this might have to iterate through all buttons and filter on aria-label instead, looking for "Click to stop following", although this might not work for non-English locales.

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