您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add a "Clone with SourceTree" button to GitLab, if you're into that sort of thing
// ==UserScript== // @name SourceTree Clone for GitLab // @namespace https://sanin.dev // @version 0.5 // @description Add a "Clone with SourceTree" button to GitLab, if you're into that sort of thing // @author Cory Sanin // @match *://gitlab.com/* // @grant none // @icon https://www.sourcetreeapp.com/assets/img/favicons/sourcetree/android-chrome-192x192.png // @license MIT // ==/UserScript== (function() { 'use strict'; var clonemenu = document.querySelector('ul.clone-options-dropdown'); if(clonemenu){ var openWithOptions = document.getElementsByClassName('open-with-link')[0].parentNode; var div = document.createElement('div'); div.classList.add('gl-new-dropdown-item-text-wrapper'); var a = document.createElement('a'); a.classList.add('dropdown-item', 'open-with-link'); a.href = `sourcetree://cloneRepo/${document.getElementById('ssh_project_clone').value}` div.appendChild(document.createTextNode('Clone In SourceTree')); a.appendChild(div); openWithOptions.appendChild(a); } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址