📜  colab 空闲超时 - 任何代码示例

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

代码示例1
// credit to the Stack Overflow user in the source link
// press Ctrl + Shift + i to open the inspector view, then go to the console
// and copy - paste the following lines

function ClickConnect(){
console.log("Working"); 
document.querySelector("#top-toolbar > colab-connect-button").shadowRoot.querySelector("#connect").click();
}
setInterval(ClickConnect,60000)