Skip to content

Instantly share code, notes, and snippets.

@vogler
Created April 10, 2022 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vogler/6510191f5bd5f790048a68b11014ca35 to your computer and use it in GitHub Desktop.
Save vogler/6510191f5bd5f790048a68b11014ca35 to your computer and use it in GitHub Desktop.
GitHub: repos labels: green for public, red for private
// ==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