Greasy Fork is available in English.

阿里云盘助手

支持生成文件下载链接、修改文件后缀,支持第三方播放器Artplayer(突破视频2分钟限制,长按倍速,选集,历史播放)

< Feedback op 阿里云盘助手

Recensie: Goed - het script werkt zoals het hoort

§
Geplaatst: 28-03-2023

老哥厉害,我提个feature,可不可以弄一个自动刷新下载链接的功能。有的文件夹里上百个文件,基本大部分都失败了,手动一个个点的话效率太低,可以做一个自动刷新,Math.floor(Math.random() * 4) + 5每5~8秒自动点一下。考虑开个github仓库么,大家也可以贡献贡献

§
Geplaatst: 28-03-2023
Bijgewerkt: 28-03-2023

我写了段代码暂用,嘿嘿

(function() {
  function yunpan_refresh() {
    const el = Array.from(document.querySelectorAll('.el-link--danger'));
    if (el.length) {
      el[0].parentElement.parentElement.querySelector('.el-button--primary').click();
      yunpan_loop();
    } else {
      alert('all ok!')
    }
  }
  function yunpan_loop() {
    setTimeout(() => {
      yunpan_refresh();
    }, (Math.floor(Math.random() * 4) + 3)*1000)
  }
  yunpan_refresh();
})()
§
Geplaatst: 07-06-2023

我写了段代码暂用,嘿嘿

(function() {
  function yunpan_refresh() {
    const el = Array.from(document.querySelectorAll('.el-link--danger'));
    if (el.length) {
      el[0].parentElement.parentElement.querySelector('.el-button--primary').click();
      yunpan_loop();
    } else {
      alert('all ok!')
    }
  }
  function yunpan_loop() {
    setTimeout(() => {
      yunpan_refresh();
    }, (Math.floor(Math.random() * 4) + 3)*1000)
  }
  yunpan_refresh();
})()

代码已经开源了,你可以提交pr

Reactie plaatsen

Log in om antwoord te geven.