🦋 Unfollowing accounts
Bluesky is my new go-to social media site; sadly, I went a little overboard with their "Starter Packs."
The Starter Packs are more or less lists of users created by users grouped by a specific subject. For example, do you want to get into Crypto and follow all of the whos who for that? Then you can find a Starter Pack someone has created that has a curated list of Crypto folks to follow, and you can either follow one by one or take the easy route of Follow All.
I got a little excited about this and ended up following too many Starter Packs, which made my Bluesky experience less than ideal as my Following Feeds were too much.
I could have gone through them individually and removed people, but sadly, I don't have the patience. With the following javascript snippet, you can open up the Developer Tools and then Java Console and easily remove people.
To use this, you need to go to the Starter Pack that you originally hit the Follow All on; once on this screen, open up the Developer Tools Console, paste this code, and hit enter. It will go through and simulate clicking the Unfollow button on each account that is followed on that screen. You can even execute this on its browser tab and then use your browser on another, and it will work in the background.
async function unfollowAll() {
const buttons = Array.from(document.querySelectorAll('button'))
.filter(button => button.textContent === 'Following');
let count = 0;
for (const button of buttons) {
try {
button.click();
count++;
// Wait for the unfollow action to complete
await new Promise(resolve => setTimeout(resolve, 1000));
console.log(`Unfollowed ${count} users`);
} catch (error) {
console.error('Error unfollowing:', error);
}
}
console.log(`Completed! Unfollowed ${count} users`);
}
unfollowAll();
I offer no warranty on this code, but it worked to get my followers back under control so that Bluesky was a bit more manageable for me… now I'm going back and following the individual accounts again, and a word of advice: don't get so click happy on following various Starter Packs. 😂
Member discussion