github-devMode.js 800 B

1234567891011121314151617181920
  1. // ==UserScript==
  2. // @name T-github-vscode模式
  3. // @author tianyunperfect
  4. // @description 简介
  5. // @version 1.0.0
  6. // @update 2021-07-08 16:16:14
  7. // @match https://github.com/*/*
  8. // @include *www.baidu.com*
  9. // @require https://git.tianyunperfect.cn/tianyunperfect/web-base/raw/master/monkey/util.js?a=1
  10. // @require https://cdn.bootcdn.net/ajax/libs/js-cookie/3.0.1/js.cookie.min.js
  11. // ==/UserScript==
  12. (async () => {
  13. if (window.top !== window.self) {
  14. return;
  15. }
  16. let url = location.href.replace("github.com","github1s.com");
  17. addLink("#repository-container-header > div.d-flex.flex-wrap.flex-justify-end.mb-3.px-3.px-md-4.px-lg-5 > div > div"," 转到vscode 模式",url)
  18. })();