Skip to content

Commit

Permalink
add sync agree state
Browse files Browse the repository at this point in the history
  • Loading branch information
Geometrically committed Nov 21, 2024
1 parent 510a697 commit c741ba2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions apps/frontend/src/public/promo-frame-rev-iq.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,23 @@
origin: "https://modrinth.com",
});
});

let attempts = 0;
function syncAgreeState() {
const primaryButton = document.querySelector(
".qc-cmp2-summary-buttons button:last-of-type",
);

if (primaryButton) {
primaryButton.click();
} else {
attempts++;
if (attempts < 10) {
setTimeout(syncAgreeState, 1000);
}
}
}
syncAgreeState();
</script>
</body>
</html>

0 comments on commit c741ba2

Please sign in to comment.