Skip to content

Instantly share code, notes, and snippets.

@iaintshine
Forked from offirgolan/unwatch-gh-org.js
Created January 31, 2019 06:46
Show Gist options
  • Save iaintshine/c5b03d44a36bae82960755f4992a336b to your computer and use it in GitHub Desktop.
Save iaintshine/c5b03d44a36bae82960755f4992a336b to your computer and use it in GitHub Desktop.
Unwatch All Org Repos
// Navigate to https://github.com/watching and then run:
// Taken from: https://stackoverflow.com/questions/11043374/how-to-unwatch-multiple-repos-easily-on-github
Array.prototype
.slice.apply(document.querySelectorAll('.js-subscription-row'))
.forEach(el => { const org = el.querySelector('a[href^="/YOUR_ORG"]'); if (org) el.querySelector('button').click()});
@iaintshine
Copy link
Author

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