Skip to content

Instantly share code, notes, and snippets.

Avatar
Drinking coffee

Aaron Dunphy aarondunphy

Drinking coffee
View GitHub Profile
@aarondunphy
aarondunphy / linkedin.js
Last active Oct 27, 2020
Go to https://www.linkedin.com/feed/following/ and scroll to the bottom of the page so all the people you are following have loaded in. Paste the following code into the browser console. Make sure to update your keywords that you want to unfollow people by.
View linkedin.js
let people = document.querySelectorAll('.follows-recommendation-card');
let keywords = ['recruiter', 'recruitment', 'hunter', 'headhunter', 'acquisition', 'talent'];
people.forEach(person => {
if(person.querySelector('.follows-recommendation-card__headline')){
let headline = person.querySelector('.follows-recommendation-card__headline').innerText.toLowerCase();
let shouldUnfollow = false;
keywords.forEach(keyword => {
if(headline.includes(keyword)){
shouldUnfollow = true;
}