GitHubHideDesktop

hide "Open in GitHub Desktop" button

目前为 2022-07-04 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name GitHubHideDesktop
  3. // @name:CN-zh_cn GitHub隐藏Desktop按钮
  4. // @version 0.7
  5. // @description hide "Open in GitHub Desktop" button
  6. // @author gaojr
  7. // @namespace https://github.com/gaojr/scripts-styles
  8. // @license MIT
  9. // @match https://github.com/*
  10. // @require https://greasyfork.org/scripts/393085-commonsutil/code/CommonsUtil.js
  11. // @grant none
  12. // @connect github.com
  13. // @icon https://github.githubassets.com/pinned-octocat.svg
  14. // ==/UserScript==
  15.  
  16. (function () {
  17. let func = () => {
  18. // 删除仓库页的 "Open with GitHub Desktop"
  19. // 删除文件页的 "Open in GitHub Desktop"
  20. removeIt('a[href="https://desktop.github.com"]', false);
  21. };
  22. addToFuncMap('github-hide-desktop', func);
  23. })();