Skip to content

Instantly share code, notes, and snippets.

@egeste
Created May 29, 2018 21:55
Show Gist options
  • Save egeste/3db7c8442bf3afdd169746cacb9fb9a0 to your computer and use it in GitHub Desktop.
Save egeste/3db7c8442bf3afdd169746cacb9fb9a0 to your computer and use it in GitHub Desktop.
Unfollow all on soundcloud
// 1. Go to https://soundcloud.com/you/following
// 2. Open javascript console.
// 3. Paste & hit <enter>
const unfollow = function() {
const button = document.querySelector('.sc-button-follow')
button && button.click()
button && setTimeout(unfollow, 0)
}; unfollow();
@fernandopalafox
Copy link

Worked as intended. Thanks!

@ELIJHV
Copy link

ELIJHV commented May 25, 2023

Hey can u send a working unreposter script thanks

@transiient
Copy link

// 1. Go to https://soundcloud.com/you/following
// 2. Load all users that you follow (scroll to the end of the page until list is fully loaded) 
// 3. Open javascript console.
// 4. Paste & hit <enter>
(() => {
  // Time to sleep between requests in ms
  const sleepMin = 500;
  const sleepMax = 1000;

  async function sleep(msec) {
    return new Promise(resolve => setTimeout(resolve, msec));
  }

  async function unfollow() {
    const $badges = document.querySelectorAll('.userBadgeListItem');
    const badgesCount = $badges.length;

    for (let i = 0; i < badgesCount; i++) {
      const $badge = $badges[i]
      const $title = $badge.querySelector('.userBadgeListItem__heading');
      const $button = $badge.querySelector('.sc-button-follow');

      const title = $title.innerText;

      if ($button) {
        console.log("[%s/%s] Unfollowing \"%s\"", i + 1, badgesCount, title);
        $button.click();
        await sleep(Math.floor(Math.random() * (sleepMax - sleepMin + 1)) + sleepMin);
      } else {
        console.warn("[%s/%s] Already unfollowed \"%s\"", i + 1, badgesCount, title);
      }
    }

    console.log("Done");
  }

  unfollow();
})();

This one worked perfectly thank you! Now gotta find the few people I want to follow again lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment