您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
hide "Open in GitHub Desktop" button
当前为
// ==UserScript== // @author gaojr // @namespace https://github.com/gaojr/tampermonkey-scripts // @name:CN-zh_cn GitHub隐藏Desktop按钮 // @name GitHubHideDesktop // @version 0.2 // @description hide "Open in GitHub Desktop" button // @license MIT // @match https://github.com/* // @require https://greasyfork.org/scripts/393085-commonsutil/code/CommonsUtil.js?version=754478 // @grant none // @connect github.com // @icon https://github.githubassets.com/pinned-octocat.svg // ==/UserScript== (function () { window.onload = function () { console.log('github-hide-desktop start!'); // 删除仓库页的 "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); console.log('github-hide-desktop end!'); } })();