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

< Feedback on 挊

Question/comment

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

百度云离线下载修复

因为那些按钮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: 2015-08-09

感谢贡献代码

Post reply

Sign in to post a reply.