您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Force HTTP links to use HTTPS. You need to write your own @match or @include rules!
If you're using Firefox 83, just use the built-in HTTPS-only mode.
For everyone else, this is a simple userscript to easily force HTTP links to use HTTPS.
Note: This userscript adds an example @match
rule, but you should use your userscript manager to write your own @match
rules, so you can manage which sites should be forced to use HTTPS.
This can be easily done in FireMonkey or ViolentMonkey by editing the script and clicking on the "Settings" tab. There, you can write and manage your own rules.
Haven't tested Greasemonkey or Tampermonkey.
Note 2: This userscript will only work for sites that support HTTPS, but for some reason defaults to using HTTP like apache.org. If a site only supports HTTP, then obviously this script will not work and you will run into your browser's "Secure connection failed" page or an infinite redirect loop depending on your HTTP site.
You will also want to use my CSP - Upgrade Insecure Requests userscript to force HTTP assets to use HTTPS where possible.