Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const answerSelector = () => {
- $('.question:not(.hidden) .correct').click();
- }
- const interval = setInterval(() => {
- answerSelector();
- if($('.question').length === 0) {
- clearInterval(interval);
- console.log('done');
- }
- }, 1000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement