參 https://www.analyticsvidhya.com/blog/2020/04/5-amazing-google-colab-hacks-you-should-try-today/#2
就是按下 F12 後輸入
function KeepClicking(){
console.log("Clicking");
document.querySelector("colab-toolbar-button#connect").click()
}setInterval(KeepClicking,60000)
但是還是只能跑最多12小時,要注意一下