Created
April 10, 2022 23:00
-
-
Save vogler/6510191f5bd5f790048a68b11014ca35 to your computer and use it in GitHub Desktop.
GitHub: repos labels: green for public, red for private
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: repos labels: green for public, red for private | |
// @description GitHub: repos labels: green for public, red for private | |
// @namespace https://gist.github.com/vogler | |
// @downloadURL https://gist.github.com/vogler/6510191f5bd5f790048a68b11014ca35/raw/color-repo-labels.github.com.tamper.js | |
// @version 0.1 | |
// @author Ralf Vogler | |
// @match https://github.com/*?tab=repositories* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
Array.from(document.querySelectorAll('.Label')).filter(x => x.innerText == "Public").forEach(x => x.style.color = '#448844'); | |
Array.from(document.querySelectorAll('.Label')).filter(x => x.innerText == "Private").forEach(x => x.style.color = '#884444'); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment