HTTP to HTTPS

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

目前為 2017-09-13 提交的版本,檢視 最新版本

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