-
-
Save stgarf/aaa94b9a03e57cf4856e064adee2dbbc to your computer and use it in GitHub Desktop.
Unwatch All Org Repos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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('.Box-row')) | |
.forEach(el => { | |
const org = el.querySelector('a[href^="/YOUR_ORG"]'); | |
if (org) el.querySelector('button').click() | |
}); | |
var xpath = "//a[text()='Next']"; | |
var matchingElement = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; | |
matchingElement.click(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment