Advertisement
OS_scripts

(cpstest) Reaction Time Test

Jan 27th, 2025
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // https://cpstest.org/reaction-time-test
  2.  
  3. function loop() {
  4.     var score = document.getElementById("averageReflexScore"); // define element score
  5.     if (score.textContent.length == 0 && clpadBody.style.background == "rgb(4, 185, 98)"){ // check if score.textContent length is 0. And check for green background.
  6.         reactionClick(); // call click function (this is built in from the website itself)
  7.     }
  8. }
  9.  
  10. setInterval(loop, 0); // set loop on function called "loop" with timeout = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement