京东 HTTP to HTTPS

将一些支持 https 的但是没有做跳转的网站跳到 https

  1. // ==UserScript==
  2. // @name 京东 HTTP to HTTPS
  3. // @version 0.2
  4. // @author LisonFan
  5. // @match http://*.jd.com/*
  6. // @match http://*.*.jd.com/*
  7. // @grant none
  8. // @license MIT License
  9. // @namespace https://lisonfan.com/
  10. // @description 将一些支持 https 的但是没有做跳转的网站跳到 https
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. if (location.protocol=='http:') location.protocol = "https:";
  16. })();