GitHubHideDesktop

hide "Open in GitHub Desktop" button

目前为 2019-12-03 提交的版本。查看 最新版本

// ==UserScript==
// @author gaojr
// @namespace https://github.com/gaojr/tampermonkey-scripts
// @name:CN-zh_cn GitHub隐藏Desktop按钮
// @name GitHubHideDesktop
// @version 0.5
// @description hide "Open in GitHub Desktop" button
// @license MIT
// @match https://github.com/*
// @require https://gf.qytechs.cn/scripts/393085-commonsutil/code/CommonsUtil.js
// @grant none
// @connect github.com
// @icon https://github.githubassets.com/pinned-octocat.svg
// ==/UserScript==

(function () {
  let func = () => {
    // 删除仓库页的 "Open in Desktop"
    removeIt('.get-repo-modal-options .mt-2 .tooltipped.js-get-repo', true);
    // 删除文件页的 "Open this file in GitHub Desktop"
    removeIt('.btn-octicon.tooltipped', true);
  };
  addToFuncMap('github-hide-desktop', func);
})();

QingJ © 2025

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