Skip to content

Instantly share code, notes, and snippets.

@chrisvogt
Last active October 20, 2018 18:19
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 chrisvogt/544c83b0861a70728684c52f43c68628 to your computer and use it in GitHub Desktop.
Save chrisvogt/544c83b0861a70728684c52f43c68628 to your computer and use it in GitHub Desktop.
Useful scripts for managing and controlling social profiles.
// NOTE(cvogt): LinkedIn doesn't provide a bulk unfollow option. To bulk unfollow, go to the /feed/following
// route, scroll down to the end so that all followers are visible, select all of the unfollow buttons
// and trigger their click event.
const unfollowButtons = document.querySelectorAll('button.feed-following__follow-btn');
unfollowButtons.forEach(button => {
button.click();
});
console.info(`Unfollowed ${unfollowButtons.length} profiles.`);
// NOTE(cvogt): Remove all interests associated with your Facebook ads profile. To remove, go to the
// /ads/preferences/?entry_product=ad_settings_screen route, inspect one of the remove tooltip buttons
// that appear when you hover over an interest and verify the class selectors still include the one
// in the query below, then manually get as many interests to appear while running this script. Facebook
// does on the defense as you begin removing interests here, and will begin reducing the number of visible
// interests you can access by reloading the page. They also never truly de-associate the interests from
// your profile, and those can still be seen in the 'Removed interests' list.
document.querySelectorAll('button._2b2p').forEach(button => {
setTimeout(() => {
button.click();
}, 500);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment