Last active
January 5, 2023 04:35
-
-
Save aereal/e06e297407eb27c2f0b400309f705ea0 to your computer and use it in GitHub Desktop.
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
(() => { | |
const projects = Array.from( | |
document.querySelectorAll("[data-testid=project-row]") | |
); | |
const installedProjects = projects.filter((e) => { | |
const button = e.querySelector("[data-testid=project-row-button]"); | |
if (!button) { | |
return false; | |
} | |
return button.textContent.trim() !== "Set Up Project"; | |
}); | |
const names = installedProjects.map((e) => | |
e.querySelector("div > a").textContent.trim() | |
); | |
copy(names.join("\n")); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment