去你的GitCode

GitCode自动重定向到GitHub, 拒绝赤石

  1. // ==UserScript==
  2. // @name 去你的GitCode
  3. // @description GitCode自动重定向到GitHub, 拒绝赤石
  4. // @namespace Violentmonkey Scripts
  5. // @author qby
  6. // @match https://gitcode.com/*
  7. // @grant none
  8. // @version 1.1
  9. // @license MIT
  10. // @author -
  11. // @description 6/28/2024, 6:27:54 AM
  12. // ==/UserScript==
  13. console.log("Fuck you GitCode!");
  14.  
  15. function exec() {
  16. let target = "https://gitcode.com/Gitcode-offical-team/GitCode-Docs/issues/198"
  17. if (window.location.href == target){
  18. return;
  19. }
  20. alert("傻逼GitCode");
  21. if (window.location.pathname == "/") {
  22. window.location.href = target
  23. } else {
  24. window.location.href = "https://github.com/" + window.location.pathname;
  25. }
  26. }
  27.  
  28. exec()

QingJ © 2025

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