浏览模式: 标准 | 列表 2017年06月11日的文章

Chrome+Tampermonkey+脚本=下载百度云大文件

 去Chrome 网上应用店下载Tampermonkey:

https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?utm_source=chrome-app-launcher-info-dialog

如果打不开以上网址(因为众所周知的原因):

打开https://yurl.sinaapp.com/crx.php,输入ID(上面加黑的那一串字符),然后点击生成按钮,最后右键另存为即可下载crx到电脑中,下载完成后把crx包拖入chrome浏览器即可完成安装。

安装好Tampermonkey后,把以下代码加入到脚本中:

// ==UserScript==

// @name         解决百度云大文件下载限制

// @namespace    undefined

// @version      0.0.6

// @description  一行代码,解决百度云大文件下载限制

// @author       funianwuxin

// @match        http://pan.baidu.com/*

// @match        https://pan.baidu.com/*

// @match        http://yun.baidu.com/*

// @match        https://yun.baidu.com/*

// @match        https://eyun.baidu.com/*

// @run-at       document-start

// @grant        none

// ==/UserScript==

/* jshint -W097 */

'use strict';


Object.defineProperty(Object.getPrototypeOf(navigator),'platform',{get:function(){return 'sb_baidu';}})


(function(){

var href=location.href;

/http:/.test(href)?location.href='https'+href.slice(4):0;

}());