Skip to content

Instantly share code, notes, and snippets.

@Elvincth
Created May 29, 2025 15:49
Show Gist options
  • Save Elvincth/7a891fb67b09c03b7e654497bb6bb6c5 to your computer and use it in GitHub Desktop.
Save Elvincth/7a891fb67b09c03b7e654497bb6bb6c5 to your computer and use it in GitHub Desktop.
Auto click copilot "Contiue" button
// Function to find and click the Continue button with exact text
function clickContinueButton() {
const continueButton = Array.from(
document.querySelectorAll('a.monaco-button.monaco-text-button[role="button"]')
).find(button => button.textContent.trim() === 'Continue');
if (continueButton) {
continueButton.click();
console.log('Continue button clicked');
}
}
// Check for the button every 1 s
const intervalId = setInterval(clickContinueButton, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment