Skip to content

Instantly share code, notes, and snippets.

@JoshuaKGoldberg
Last active September 15, 2023 13:10
Show Gist options
  • Select an option

  • Save JoshuaKGoldberg/3876ed731e5bf09d280d4ae7b5f23d7d to your computer and use it in GitHub Desktop.

Select an option

Save JoshuaKGoldberg/3876ed731e5bf09d280d4ae7b5f23d7d to your computer and use it in GitHub Desktop.
Automating Tidelift tasks because the website takes too long to use
async function goThroughLicenseFlow() {
const waitFor = (time) => new Promise((resolve) => setTimeout(resolve, time));
const container = document.getElementById("container");
container.click();
await waitFor(500);
const choice = document.querySelector(`[value=repository_license]`);
choice.scrollIntoView();
choice.click();
await waitFor(500);
document.querySelector(".drawer-card-foot button").click();
await waitFor(500);
}
while (true) {
await goThroughLicenseFlow();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment