Greasy Fork is available in English.

百度网盘助手

显示百度网盘文件的直接链接,突破大文件需要使用电脑管家的限制

< Feedback on 百度网盘助手

Review: OK - script works, but could use improvement

§
Posted:
增加对https网站的支持

目前只对http://pan.baidu.com的网址有效,是否可以支持https://pan.baidu.com。谢谢!
§
Posted:
使用https的百度盘我觉得并没有意义,因为火狐会把上面的http内容默认全给挡掉。
造成的结果就是我在https的百度盘上无法进行下载。
§
Posted:
试了下chrome
Mixed Content: The page at 'https://pan.baidu.com/disk/home#path=%252FWestlife%252FThe%2520Love%2520Album%2520(2006)' was loaded over HTTPS, but requested an insecure resource 'http://lx.cdn.baidupcs.com/file/751023c3115e96e8cbc9407ce6d96980?bkt=p-0731…t=pm&uta=0&rtype=1&iv=0&isw=0&dp-logid=7408626145595942511&dp-callid=0.1.1'. This request has been blocked; the content must be served over HTTPS.
§
Posted:
试了下chrome Mixed Content: The page at 'https://pan.baidu.com/disk/home#path=%252FWestlife%252FThe%2520Love%2520Album%2520(2006)' was loaded over HTTPS, but requested an insecure resource 'http://lx.cdn.baidupcs.com/file/751023c3115e96e8cbc9407ce6d96980?bkt=p-0731…t=pm&uta=0&rtype=1&iv=0&isw=0&dp-logid=7408626145595942511&dp-callid=0.1.1'. This request has been blocked; the content must be served over HTTPS.

我覺得可以試試 Patch xhr 通信

§
Posted:
Edited:

我覺得可以試試 Patch xhr 通信

百度原生的下载按钮就会出这个问题,我不是单对这个脚本说的
§
Posted:

我覺得可以試試 Patch xhr 通信

百度原生的下载按钮就会出这个问题,我不是单对这个脚本说的

我的意思是攔截 xhr 請求,強制改成 https

§
Posted:
Edited:

我的意思是攔截 xhr 請求,強制改成 https

阿哈哈,不会........
话说能给个例子看看怎么拦么
§
Posted:

我的意思是攔截 xhr 請求,強制改成 https

阿哈哈,不会........ 话说能给个例子看看怎么拦么

var _open = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function (m, url) {
  arguments[1] = url.replace('http://', 'https://');
  return _open.apply(this, arguments);
};
§
Posted:
Edited:
var _open = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function (m, url) {
  arguments[1] = url.replace('http://', 'https://');
  return _open.apply(this, arguments);
};
了解,谢了,有空试一下
§
Posted:
Edited:
...
§
Posted:
var _open = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function (m, url) {
  arguments[1] = url.replace('http://', 'https://');
  return _open.apply(this, arguments);
};

发现搞不定,

    var _open = XMLHttpRequest.prototype.open;
    XMLHttpRequest.prototype.open = function (m, url) {
      arguments[1] = url.replace('http://', 'https://');
                var xhr = this;
        this.addEventListener("readystatechange", function(method, url) {
console.log(this.response);
        }, false);
      return _open.apply(this, arguments);
    };

只能在response里看到http:\/\/d.pcs.baidu.com\/file\/,但是这个还会经过一次302跳转,最终还是会跳成http的,而且不知道为什么,看到的readyState都是 4

§
Posted:
var _open = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function (m, url) {
  arguments[1] = url.replace('http://', 'https://');
  return _open.apply(this, arguments);
};

发现搞不定,

    var _open = XMLHttpRequest.prototype.open;
    XMLHttpRequest.prototype.open = function (m, url) {
      arguments[1] = url.replace('http://', 'https://');
                var xhr = this;
        this.addEventListener("readystatechange", function(method, url) {
console.log(this.response);
        }, false);
      return _open.apply(this, arguments);
    };

只能在response里看到http:\/\/d.pcs.baidu.com\/file\/,但是这个还会经过一次302跳转,最终还是会跳成http的,而且不知道为什么,看到的readyState都是 4

这样啊。。那就搞不定了呢 /w\

Post reply

Sign in to post a reply.