Last active
September 15, 2023 13:10
-
-
Save JoshuaKGoldberg/3876ed731e5bf09d280d4ae7b5f23d7d to your computer and use it in GitHub Desktop.
Revisions
-
JoshuaKGoldberg revised this gist
Sep 15, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -18,7 +18,7 @@ async function acceptVisiblePackages() { } } for (const pager of document.querySelectorAll(".pagination-list li")) { pager.click(); await waitFor(2500); // todo: be more intelligent await acceptVisiblePackages(); -
JoshuaKGoldberg revised this gist
Sep 15, 2023 . 2 changed files with 25 additions and 19 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ function waitFor(time) { return new Promise((resolve) => setTimeout(resolve, time)); } async function acceptVisiblePackages() { const containers = document.querySelectorAll("#container"); for (const container of containers) { 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); } } for (const pager of document.querySelectorAll(".pagination-list li") { pager.click(); await waitFor(2500); // todo: be more intelligent await acceptVisiblePackages(); } 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 charactersOriginal file line number Diff line number Diff line change @@ -1,19 +0,0 @@ -
JoshuaKGoldberg created this gist
Sep 15, 2023 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ 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(); }