LoginSignup
1
1

More than 5 years have passed since last update.

GitHub で HTTPS と SSH のリンク両方表示する

Last updated at Posted at 2017-11-04

地味に切り替えることが多かったので。

elzup_okhub.png

コード

Tampermonkey です。

// ==UserScript==
// @name         Github Display both clone link
// @namespace    http://elzup.com/
// @version      0.1
// @description  display clone url on Github
// @author       You
// @match        https://github.com/*/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    const e1 = document.querySelector('.file-navigation .get-repo-modal.on .ssh-clone-options');
    const e2 = document.querySelector('.file-navigation .get-repo-modal.on .https-clone-options');
    if (e1) {
        e1.style.display = 'block';
        e1.style.background = '#fff9ca';
    }
    if (e2) {
        e2.style.display = 'block';
        e2.style.background = '#dcffe1';
    }
})();

UserScript が廃止されてから Tampermonkey を使ってるんですがイマイチ共有の仕方がわからない。。あるのかな。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1