Skip to content

Instantly share code, notes, and snippets.

@zehua
Created January 20, 2015 07:53
Show Gist options
  • Save zehua/a9f0def0c88374a29809 to your computer and use it in GitHub Desktop.
Save zehua/a9f0def0c88374a29809 to your computer and use it in GitHub Desktop.
Unwatch all repositories under an organization
// select all unwatch buttons and filter by those belonging to THEORG
// replace THEORG below with your own organization name
// visit https://github.com/watching then run the script in dev tool console
$('button:contains("Unwatch")').each(function() {
var $a=$(this).parent().siblings("a:contains('THEORG/')");
if ($a.length == 1) {
$(this).click();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment