Greasy Fork is available in English.

b站HTTP转HTTPS

将B站的链接转换为HTTPS协议

// ==UserScript==
// @namespace   https://greasyfork.org/users/39670

// @name  b站HTTP转HTTPS
// @description 将B站的链接转换为HTTPS协议

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

// @include     http://*.bilibili.com/*

// @grant       none



// ==/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;
})();