HTTP to HTTPS

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

目前为 2017-06-21 提交的版本。查看 最新版本

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