GitHubHideDesktop

hide "Open in GitHub Desktop" button

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

// ==UserScript==
// @name GitHubHideDesktop
// @name:CN-zh_cn GitHub隐藏Desktop按钮
// @version 0.7
// @description hide "Open in GitHub Desktop" button
// @author gaojr
// @namespace https://github.com/gaojr/scripts-styles
// @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 with GitHub Desktop"
    // 删除文件页的 "Open in GitHub Desktop"
    removeIt('a[href="https://desktop.github.com"]', false);
  };
  addToFuncMap('github-hide-desktop', func);
})();

QingJ © 2025

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