Skip to content

arihant-jain-09/colab-connect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Stop Colab from Disconnecting

Paste both the codes in console by Ctrl+Shift+I then click console

  • Paste below code to click connect button every minute
  • function ClickConnect() {
      console.log('Working')
      document
        .querySelector('#top-toolbar > colab-connect-button')
        .shadowRoot.querySelector('#connect')
        .click()
    }
    intervalTiming = setInterval(ClickConnect, 60000)
  • Below code add extra cells every minute you may alter this time
  • function ClickConnect(){
      console.log('Working');
      document.querySelector('colab-toolbar-button#toolbar-add-text').click();
    }
    intervalTiming = setInterval(ClickConnect, 60000);