Skip to content

Instantly share code, notes, and snippets.

@RayBB
Last active February 14, 2020 07:27
Show Gist options
  • Save RayBB/27086092a16b69f56bdcf081f0c373cc to your computer and use it in GitHub Desktop.
Save RayBB/27086092a16b69f56bdcf081f0c373cc to your computer and use it in GitHub Desktop.
Unwatched all the repos you were automatically subscribed to when you joined an organization.
// Works on https://github.com/watching
// Just edit the variable below, got to the page above, and paste this code in the console.
// Will need to refresh and repeat if more than 100 repos
let unsubFrom = "buzzfeed"; // Case sensitive
document.querySelectorAll('.Box-row').forEach(entry => {
if (entry.innerText.includes(unsubFrom)){
entry.querySelector('button').click()
}
})
@puijob
Copy link

puijob commented Oct 22, 2019

They've updated the HTML classes and it doesn't work anymore with .js-subscription-row. It's .Box-row now.

@RayBB
Copy link
Author

RayBB commented Oct 22, 2019

Thanks for the tip! I've updated it :)
How did you find this gist?

@puijob
Copy link

puijob commented Oct 24, 2019

No worries!
I think I've stumbled upon a Medium article on Google when I was searching for how I can easily unwatch an organisation's repositories.

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