Skip to content

Instantly share code, notes, and snippets.

@desarrolla2
Last active December 11, 2025 14:02
Show Gist options
  • Select an option

  • Save desarrolla2/1b29815a00c214f63aa7e2f5ecd0dad8 to your computer and use it in GitHub Desktop.

Select an option

Save desarrolla2/1b29815a00c214f63aa7e2f5ecd0dad8 to your computer and use it in GitHub Desktop.
window.nextClickInterval = setInterval(() => {
const btn = document.querySelector('#next');
if (!btn) {
console.log('[INFO] Button "#next" NOT found.');
return;
}
console.log('[INFO] Button "#next" found.');
try {
btn.click();
console.log('[OK] Click executed successfully.');
} catch (err) {
console.log('[ERROR] There was a problem clicking the button:', err);
}
}, 2000);
// clearInterval(window.nextClickInterval);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment