Force HTTP to HTTPS

Force HTTP links to use HTTPS. You need to write your own @match or @include rules!

  1. // ==UserScript==
  2. // @name Force HTTP to HTTPS
  3. // @namespace r-a-y/https
  4. // @version 1.0.0
  5. // @match http://apache.org/*
  6. // @run-at document-start
  7. // @description Force HTTP links to use HTTPS. You need to write your own @match or @include rules!
  8. // ==/UserScript==
  9.  
  10. document.location.replace(document.location.href.replace(/http\:/, 'https:'));

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址