百度Baidu网盘HTTP转HTTPS

将百度网盘的链接(http://pan.baidu.com/)转换为HTTPS协议(https://pan.bidu.com),可以直接下载大文件。

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @namespace   https://greatest.deepsurf.us/users/39670

// @name  百度Baidu网盘HTTP转HTTPS
// @description 将百度网盘的链接(http://pan.baidu.com/)转换为HTTPS协议(https://pan.bidu.com),可以直接下载大文件。

// @author      Netplaier
// @version     1.01
// @license     LGPLv3

// @include     http://pan.baidu.com/*
// @include     http://yun.baidu.com/*

// @grant       none

// @icon        https://pan.baidu.com/res/static/images/favicon.ico

// ==/UserScript==


(function(){
  var debug = 0;
  var new_location = location.href.replace(/http\:/, 'https:');
  if ( debug > 0 ) {
    alert(  "Hash:     "+location.hash+
          "\nHost:     "+location.host+
          "\nHostname: "+location.hostname+
          "\nHREF:     "+location.href+
          "\nPathname: "+location.pathname+
          "\nPort:     "+location.port+
          "\nProtocol: "+location.protocol+
          "\n"+
          "\nNew Location: "+new_location);
  };
  location.href = new_location;
})();