Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ashok-arjun/d2747af5222d46428117dd265885f762 to your computer and use it in GitHub Desktop.
Save ashok-arjun/d2747af5222d46428117dd265885f762 to your computer and use it in GitHub Desktop.
Stop Colab from disconnecting, 2021.
function ClickConnect() {
console.log('Working')
document
.querySelector('#top-toolbar > colab-connect-button')
.shadowRoot.querySelector('#connect')
.click()
}
intervalTiming = setInterval(ClickConnect, 60000)
function ClickConnect(){
console.log('Working');
document.querySelector('colab-toolbar-button#toolbar-add-text').click();
}
intervalTiming = setInterval(ClickConnect, 60000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment