更简洁的https转换器

直接修改协议为HTTPS(更高效且避免替换错误)

目前为 2025-03-05 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name 更简洁的https转换器
  3. // @namespace https://viayoo.com/
  4. // @version 0.1
  5. // @description 直接修改协议为HTTPS(更高效且避免替换错误)
  6. // @author YongZhe
  7. // @run-at document-end
  8. // @match https://*/*
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. // 直接修改协议为HTTPS(更高效且避免替换错误)
  16. if (window.location.protocol === 'http:') {
  17. window.location.protocol = 'https:';
  18. }
  19. })();

QingJ © 2025

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