github-proxy-helper

GitHub 文件加速,支撑分支、release

目前為 2023-09-14 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name github-proxy-helper
  3. // @namespace https://github.com/Twtcer
  4. // @version 0.0.1
  5. // @match *://*.github.com/*
  6. // @description GitHub 文件加速,支撑分支、release
  7. // @author Twtcer
  8. // @grant GM_setClipboard
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. document.onkeydown = function(e) {
  15. // 设置监听按键 alt+G
  16. if (e.keyCode == 71 && e.altKey) {
  17. let proxy = 'https://gh.landwind.icu/';
  18. let url = window.location.href;
  19. let clone = proxy+url;
  20. try
  21. {
  22. GM_setClipboard(clone);
  23. }catch(err){
  24. console.log('GM_setClipboard fail');
  25. }
  26. }
  27. };
  28.  
  29. })();

QingJ © 2025

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