Last active
March 3, 2026 18:50
-
-
Save fmeyer/f074f3d997e1d326acea481682ac26ae to your computer and use it in GitHub Desktop.
Unfollow everyone on linkedin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Doesn't seem to work currently, the button HTML changed:
I think this might have to iterate through all buttons and filter on
aria-labelinstead, looking for "Click to stop following", although this might not work for non-English locales.