Re-add inmobi

This commit is contained in:
Jai A
2024-11-06 13:25:39 -07:00
parent 5a21a67d46
commit 493b9a3975

View File

@@ -4,8 +4,8 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Modrinth App Ad</title>
<script src="/inmobi.js"></script>
<script src="https://dn0qt3r0xannq.cloudfront.net/modrinth-7JfmkEIXEp/modrinth-longform/prebid-load.js"></script>
<!-- <script src="/inmobi.js" async></script>-->
<link rel="preload" href="https://www.googletagservices.com/tag/js/gpt.js" as="script" />
<style>
* {
@@ -104,20 +104,20 @@
});
});
// let attempts = 0;
// function syncAgreeState() {
// const primaryButton = document.querySelector('[mode="primary"]');
//
// if (primaryButton) {
// primaryButton.click();
// } else {
// attempts++;
// if (attempts < 10) {
// setTimeout(syncAgreeState, 1000);
// }
// }
// }
// syncAgreeState();
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>