谷歌浏览器 F12, 控制台插入此代码,回车即可。

function getElementByXpath(path) {
       return document.evaluate(path, document, null, 
       XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
  }
 
function reconnect(){
      console.log('working')
      getElementByXpath("//div[@id='top-toolbar']/colab-connect-button").click()
}
var a = setInterval(reconnect, 1*60*1000);
function stop(){
     clearInterval(a)
}
function start(){
     a = setInterval(reconnect, 1*60*1000);
}

相关文章:

  • 2021-06-30
  • 2022-12-23
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-07-07
  • 2021-12-11
猜你喜欢
  • 2021-10-24
  • 2022-01-22
  • 2021-06-17
  • 2022-12-23
  • 2021-04-12
  • 2021-07-09
相关资源
相似解决方案