Created
May 20, 2026 15:11
-
-
Save benjaminbojko/2b7ab62ab4bd281ce50578e708f48038 to your computer and use it in GitHub Desktop.
Antigravity IDE: Automatic Retry
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (() => { | |
| // PASTE THIS INTO DEV TOOLS (CTRL+SHIFT+I) | |
| // 1. Cancel the previous observer if it exists | |
| window.activeRetryObserver?.disconnect(); | |
| // 2. Define the click logic in a private closure | |
| const clickRetry = () => { | |
| [...document.querySelectorAll('button.bg-primary')] | |
| .find(b => b.innerText.trim() === 'Retry') | |
| ?.click(); | |
| }; | |
| // 3. Create, store, and start the new observer | |
| window.activeRetryObserver = new MutationObserver(clickRetry); | |
| window.activeRetryObserver.observe(document.body, { childList: true, subtree: true }); | |
| // 4. Run an initial check immediately | |
| clickRetry(); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment