Created
November 4, 2017 16:22
-
-
Save elzup/0c6abe75bf9a06e72fdba0aad7cad861 to your computer and use it in GitHub Desktop.
Display both clone link <Tempermonkey>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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'; | |
} | |
if (e2) { | |
e2.style.display = 'block'; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment