Github跳转到gitpod编辑页面

Github跳转到gitpod编辑页面的脚本,Github仓库页面显示一个按钮,跳转到gitpod的编辑页面

  1. // ==UserScript==
  2. // @name Github跳转到gitpod编辑页面
  3. // @namespace https://github.com/kitety/jump-to-gitpod
  4. // @homepage https://github.com/kitety/jump-to-gitpod
  5. // @version 0.0.1
  6. // @description Github跳转到gitpod编辑页面的脚本,Github仓库页面显示一个按钮,跳转到gitpod的编辑页面
  7. // @author Kitety
  8. // @icon https://github.com/favicon.ico
  9. // @match *://github.com/*
  10. // @run-at document-end
  11. // @require https://unpkg.com/jquery@3.5.1/dist/jquery.js
  12. // @license GPL
  13. // ==/UserScript==
  14. (function (w) {
  15. var $ul = $("ul.pagehead-actions");
  16. var href = window.location.href.replace("github.com", "gitpod.io#github.com");
  17. if (!$ul.length) return;
  18. var $li = $(
  19. '<li><a href="' +
  20. href +
  21. '" class="btn btn-sm tooltipped tooltipped-s" target="_blank" rel="noopener noreferrer" aria-label="跳转到Gitpod" > 跳转到Gitpod</a> </li> '
  22. );
  23. $ul.append($li);
  24. })();

QingJ © 2025

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