Gitee直接打开链接

Gitee直接打开链接,不再有中转页面

  1. // ==UserScript==
  2. // @name Gitee直接打开链接
  3. // @namespace http://tampermonkey.net/
  4. // @version 2024-04-20
  5. // @description Gitee直接打开链接,不再有中转页面
  6. // @author 微信搜索: weixin-OS
  7. // @match https://gitee.com/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=gitee.com
  9. // @grant none
  10. // @license GPL-3.0 License
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. $(document).ready(function() {
  16. $("a[href*='https://gitee.com/link?target=']").each(function() {
  17. var href = $(this).attr("href");
  18. var targetPath = href.split("target=")[1];
  19. var decodedPath = decodeURIComponent(targetPath);
  20.  
  21. $(this).attr("href", decodedPath);
  22. $(this).attr("target", "_blank");
  23. });
  24. });
  25. })();

QingJ © 2025

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