File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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/*
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
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
You can’t perform that action at this time.
0 commit comments