您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
github助手 | 按alt + x 快捷复制克隆地址 |
// ==UserScript== // @name github助手 // @namespace https://github.com/Twtcer // @version 0.0.1 // @match https://github.com/* // @description github助手 | 按alt + x 快捷复制克隆地址 | // @author Twtcer // @grant GM_setClipboard // @license MIT // ==/UserScript== (function() { 'use strict'; document.onkeydown = function(e) { if (e.keyCode == 88 && e.altKey) { //console.log(`url: ${window.location.href}`); let url = window.location.href; let github = 'https://github.com/'; let arr = url.replace(github,'').split('/'); if(arr.length > 0) { let userName = arr[0]; let repo = arr[1]; let projectUrl = `${github}${userName}/${repo}`; let cloneUrl = `git clone ${projectUrl}`; GM_setClipboard(cloneUrl,'{ type: ‘text’, mimetype: ‘text/plain’}'); } } } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址