Skip to content

Instantly share code, notes, and snippets.

@jponf
Last active January 20, 2021 07:24
Show Gist options
  • Save jponf/2c147b575cd3fe45160e71cedce38c61 to your computer and use it in GitHub Desktop.
Save jponf/2c147b575cd3fe45160e71cedce38c61 to your computer and use it in GitHub Desktop.
// Open browser JS console and Copy&Paste the following code
function ConnectButton(){
console.log("Connect pushed");
document.querySelector("#top-toolbar > colab-connect-button").shadowRoot.querySelector("#connect").click()
}
setInterval(ConnectButton, 300000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment