Skip to content

Instantly share code, notes, and snippets.

@CharlyWargnier
Created June 4, 2020 19:02
Show Gist options
  • Save CharlyWargnier/6482ebce1a97c78c961085775683a940 to your computer and use it in GitHub Desktop.
Save CharlyWargnier/6482ebce1a97c78c961085775683a940 to your computer and use it in GitHub Desktop.
function ConnectButton(){
console.log("Connect pushed");
document.querySelector("#top-toolbar > colab-connect-button").shadowRoot.querySelector("#connect").click()
}
setInterval(ConnectButton,60000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment