add sync agree state

This commit is contained in:
Jai A
2024-11-21 13:06:18 -08:00
parent 510a6977be
commit c741ba26cc

View File

@@ -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>