HTTP to HTTPS

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

目前为 2017-07-30 提交的版本。查看 最新版本

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