Skip to content

Commit aff217c

Browse files
committed
Update
1 parent f32c74c commit aff217c

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

bypass-various-popups.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name Bypass Various Popups
3-
// @version 0.1
3+
// @version 0.2
44
// @downloadURL https://userscripts.codonaft.com/bypass-various-popups.js
55
// @match https://*.archive.org/*
66
// @match https://chat.qwen.ai/*
@@ -51,7 +51,7 @@
5151
}
5252

5353
if (node.tagName === 'BUTTON' && node.getAttribute('data-role') === 'parental-control-confirm-button') {
54-
node.click();
54+
setTimeout(() => node.click(), randomPause(1000, 1500));
5555
return;
5656
}
5757

@@ -63,7 +63,9 @@
6363

6464
if (node.matches?.('#modalWrapMTubes')) {
6565
observer.disconnect();
66-
document.body.querySelectorAll('#modalWrapMTubes > div > div > button').forEach(i => i.click());
66+
setTimeout(() => {
67+
document.body.querySelectorAll('#modalWrapMTubes > div > div > button').forEach(i => i.click());
68+
}, randomPause(1000, 1500));
6769
return;
6870
}
6971

0 commit comments

Comments
 (0)