自动获取磁链接并自动离线下载

< Feedback on 挊

Question/comment

§
Posted: 07-07-2015
Edited: 09-07-2015

百度云离线下载修复

因为那些按钮ID会变化,所以要用类来选择那些按钮。
找到以下代码

    regexp: /pan\.baidu\.com/,
    proc: function (magnet) {
      $('.icon-btn-download').click();
      setTimeout(function () {
        $('#_disk_id_24').click();
        setTimeout(function () {
          $('#_disk_id_13').click();
          $('#share-offline-link').val(magnet);
        }, 500);
      }, 500);
    }

替换为

    regexp: /pan\.baidu\.com/,
    proc: function (magnet) {
        $('.icon-btn-download')[0].click();
        setTimeout(function () {
        $('.create-normal-button')[0].click();
        $('#share-offline-link').val(magnet);
        $('.dlg-ft .sbtn')[0].click()
        setTimeout(function () {
        $('.btlist-bottom .sbtn')[0].click();
        }, 3000);
        }, 500);
    }

Edit By @JixunMoe: 帮你代码排版

thunderhitAuthor
§
Posted: 09-08-2015

感谢贡献代码

Post reply

Sign in to post a reply.