📜  google colab clicker - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:14.581000             🧑  作者: Mango

代码示例1
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)