You've already forked AstralRinth
forked from didirus/AstralRinth
add sync agree state
This commit is contained in:
@@ -79,6 +79,23 @@
|
|||||||
origin: "https://modrinth.com",
|
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>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user