diff --git a/apps/frontend/src/public/promo-frame-rev-iq.html b/apps/frontend/src/public/promo-frame-rev-iq.html index f4d142e7e..daa2bd8de 100644 --- a/apps/frontend/src/public/promo-frame-rev-iq.html +++ b/apps/frontend/src/public/promo-frame-rev-iq.html @@ -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();