File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 5050 ` ;
5151 } ;
5252
53+
54+ // check if the user is a human by checking if the cookie is set
55+ if ( document . cookie . includes ( "isHuman=true" ) ) {
56+ hiddenElements . forEach ( el => el . style . display = "" ) ;
57+ statusDiv . textContent = "" ;
58+ return ;
59+ }
60+
5361 updateTimerAndHash ( ) ;
5462 const interval = setInterval ( updateTimerAndHash , 100 ) ;
5563
6068 if ( solvedNonce !== null ) {
6169 hiddenElements . forEach ( el => el . style . display = "" ) ;
6270 statusDiv . textContent = "" ;
71+ // store a cookie to remember the user is human
72+ document . cookie = "isHuman=true; path=/" ;
6373 } else {
6474 statusDiv . textContent = "Access denied. If you are a human, please try again later." ;
6575 hiddenElements . forEach ( el => el . innerHTML = "" ) ;
You can’t perform that action at this time.
0 commit comments