File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ if ((location.pathname.startsWith('/xapanel/xvps/server/freevps/extend/conf') ||
5454 const body = document . querySelector ( 'img[src^="data:"]' ) . src
5555 const code = await fetch ( 'https://captcha-120546510085.asia-northeast1.run.app' , { method : 'POST' , body } ) . then ( r => r . text ( ) )
5656 document . querySelector ( '[placeholder="上の画像の数字を入力"]' ) . value = code
57- setInterval ( ( ) => {
58- if ( document . querySelector ( '[name=cf-turnstile-response]' ) . value ) unsafeWindow . submit_button . click ( )
59- } , 1000 )
57+ const cf = document . querySelector ( '.cf-turnstile [name=cf-turnstile-response]' )
58+ if ( cf . value ) unsafeWindow . submit_button . click ( )
59+ new MutationObserver ( ( ) => unsafeWindow . submit_button . click ( ) ) . observe ( cf , { attributes : true , attributeFilter : [ 'value' ] } )
6060}
You can’t perform that action at this time.
0 commit comments