Skip to content

Instantly share code, notes, and snippets.

@nornagon
Created June 18, 2019 18:35
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 nornagon/38baefe944c1be36ad6ce383ae75417a to your computer and use it in GitHub Desktop.
Save nornagon/38baefe944c1be36ad6ce383ae75417a to your computer and use it in GitHub Desktop.
Make GitHub Checks UI readable
// ==UserScript==
// @name GitHub Check Colors
// @version 1
// @include https://github.com/*
// @grant none
// ==/UserScript==
for (const li of document.querySelectorAll('[data-channel^="check_runs:"] .container-md li')) {
if (/Failed/.test(li.textContent)) {
li.style.color = 'red'
} else if (/Success/.test(li.textContent)) {
li.style.color = 'green'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment