Greasy Fork镜像 支持简体中文。

gitee快速跳转sikp

实现giteee平台的跳转问题

  1. // ==UserScript==
  2. // @name gitee快速跳转sikp
  3. // @namespace http://gitee.com
  4. // @version 1.1
  5. // @description 实现giteee平台的跳转问题
  6. // @author You
  7. // @include *://gitee.com/*
  8. // @grant none
  9. // ==/UserScript==
  10. (function() {
  11. 'use strict';
  12. var divs = window.document.createElement('div')
  13. divs.style.width = '50px'
  14. divs.style.height = '50px'
  15. divs.style.background = 'red'
  16. divs.style.position = 'fixed'
  17. divs.style.top = '50%'
  18. divs.left = 0
  19. divs.addEventListener("click", function( event ) {
  20. window.open(window.location.href.replace('github','github1s'))
  21. }, false);
  22. var body = window.document.body
  23. body.appendChild(divs)
  24. // Your code here...
  25. })();

QingJ © 2025

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