Skip to content

Instantly share code, notes, and snippets.

@ajinabraham
Last active June 8, 2023 19:57
Show Gist options
  • Save ajinabraham/0d160419dde600136aa0cd3336db51f4 to your computer and use it in GitHub Desktop.
Save ajinabraham/0d160419dde600136aa0cd3336db51f4 to your computer and use it in GitHub Desktop.
General Security Reminder: Do not run code shared by anyone on browser console, unless you know what the code is doing!
// 1. Go to https://www.linkedin.com/feed/following/?filterType=member
// 2. Select the ALL filter to see people you follow
// 3. Open console, paste the following and press enter
function massUnfollow(){
var buttons = document.getElementsByClassName('is-following')
for (let i = 0; i < buttons.length; i++) {
buttons[i].click()
}
}
setInterval(function(){
massUnfollow()
setTimeout(function(){
window.scrollTo(0,document.body.scrollHeight);
}, 2000);
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment