kill ads loop after 10s
This commit is contained in:
parent
db145cd8ad
commit
d3a7bf967e
@ -107,13 +107,17 @@
|
||||
});
|
||||
});
|
||||
|
||||
let attempts = 0;
|
||||
function syncAgreeState() {
|
||||
const primaryButton = document.querySelector('[mode="primary"]');
|
||||
|
||||
if (primaryButton) {
|
||||
primaryButton.click();
|
||||
} else {
|
||||
setTimeout(syncAgreeState, 100);
|
||||
attempts++;
|
||||
if (attempts < 10) {
|
||||
setTimeout(syncAgreeState, 1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
syncAgreeState();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user