您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
hide "Open in GitHub Desktop" button
当前为
- // ==UserScript==
- // @author gaojr
- // @namespace https://github.com/gaojr/greasyfork-scripts
- // @name:CN-zh_cn GitHub隐藏Desktop按钮
- // @name GitHubHideDesktop
- // @version 0.1
- // @description hide "Open in GitHub Desktop" button
- // @license MIT
- // @match https://github.com/*
- // @grant none
- // @connect github.com
- // @icon https://github.githubassets.com/pinned-octocat.svg
- // ==/UserScript==
- (function () {
- // 删除仓库页的 "Open in Desktop"
- if (!!document.querySelector('.get-repo-modal-options .mt-2 .tooltipped.js-get-repo')) {
- document.querySelector('.get-repo-modal-options .mt-2 .tooltipped.js-get-repo').remove();
- }
- // 删除文件页的 "Open this file in GitHub Desktop"
- if (!!document.querySelector(".btn-octicon.tooltipped")) {
- document.querySelector(".btn-octicon.tooltipped").remove();
- }
- })();