Skip to content

Instantly share code, notes, and snippets.

@benjaminbojko
Created May 20, 2026 15:11
Show Gist options
  • Select an option

  • Save benjaminbojko/2b7ab62ab4bd281ce50578e708f48038 to your computer and use it in GitHub Desktop.

Select an option

Save benjaminbojko/2b7ab62ab4bd281ce50578e708f48038 to your computer and use it in GitHub Desktop.
Antigravity IDE: Automatic Retry
(() => {
// 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