Skip to content

Instantly share code, notes, and snippets.

@s4l3h1
Forked from rahul286/linkedin-unfollow.js
Created August 19, 2018 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s4l3h1/66564f81192f8e539e01fc1a80745e06 to your computer and use it in GitHub Desktop.
Save s4l3h1/66564f81192f8e539e01fc1a80745e06 to your computer and use it in GitHub Desktop.
LinkedIn Unfollow All
# goto https://www.linkedin.com/feed/following/
# in JS console run
var buttons = $("button"),
interval = setInterval(function(){
var btn = $('.is-following');
console.log("Clicking:", btn);
btn.click();
if (buttons.length === 0) {
clearInterval(interval);
}
window.scrollTo(0,document.body.scrollHeight);
}, 100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment