Created
August 3, 2017 09:40
-
-
Save wolfspelz/ed02d5e0867d8d3da16ec2abebd0e58f to your computer and use it in GitHub Desktop.
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 visualstudio build | |
// @namespace http://wolfspelz.de/ | |
// @version 0.1 | |
// @description Color blind bars | |
// @match https://*.visualstudio.com/DefaultCollection/*/_build/* | |
// @copyright 2015+, wolfspelz | |
// ==/UserScript== | |
function style(css) { | |
var head = document.getElementsByTagName('head')[0]; | |
if (!head) { return; } | |
var style = document.createElement('style'); | |
style.type = 'text/css'; | |
style.innerHTML = css; | |
head.appendChild(style); | |
} | |
style('.definition-histogram .bar.partiallysucceeded { background-color: #f0f000; }'); | |
style('.definition-histogram .bar.partiallysucceeded.selected { background-color: #f0f000; }'); | |
style('.definition-histogram .bar.succeeded { background-color: #00cc00; }'); | |
style('.definition-histogram .bar.succeeded.selected { background-color: #00cc00; }'); | |
style('.definition-histogram .bar.failed { background-color: #ff0000; }'); | |
style('.definition-histogram .bar.failed.selected { background-color: #ff0000; }'); | |
style('.definition-histogram .bar.canceled { background-color: #b0b0b0; }'); | |
style('.definition-histogram .bar.canceled.selected { background-color: #b0b0b0; }'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment