Answers for "colab clicker"

1

google colab clicker

function ConnectButton(){
    console.log("Connect pushed"); 
    document.querySelector("#top-toolbar > colab-connect-button").shadowRoot.querySelector("#connect").click() 
}

colabClicker = setInterval(ConnectButton, 60000);

// by assigning setInterval return to variable you can easily stop clicker anytime
// clearInterval(colabClicker)
Posted by: Guest on February-12-2021
1

colab notebook keeps getting disconnected

function ClickConnect(){
    console.log("Clicked on connect button"); 
    document.querySelector("colab-connect-button").click()
}
setInterval(ClickConnect,60000)
Posted by: Guest on July-24-2020
1

how-to-prevent-google-colab-from-disconnecting

#Set a javascript interval to click on the connect button every 60 seconds. 
#Open developer-settings (in your web-browser) with Ctrl+Shift+I then click 
#on console tab and type this on the console prompt. 
#(for mac press Option+Command+I)

function ConnectButton(){
    console.log("Connect pushed"); 
    document.querySelector("#top-toolbar > colab-connect-button").shadowRoot.querySelector("#connect").click() 
}
setInterval(ConnectButton,60000);
Posted by: Guest on December-31-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language