Last active
September 25, 2015 09:44
-
-
Save DamianStanger/593108ebf25f3e6031cc to your computer and use it in GitHub Desktop.
Tamper monkey script to change the theme of go cd to black
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 Go server dark | |
// @namespace https://go.server.com | |
// @description Just my attempt at a dark style for go cd. | |
// @author Damo | |
// @run-at document-start | |
// @version 1 | |
// ==/UserScript== | |
(function() {var css = ""; | |
css += [ | |
"@namespace html url(http://www.w3.org/1999/xhtml);", | |
"@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);", | |
"", | |
"/* Browser Background */", | |
"browser[type=\"content-primary\"] {", | |
"background-color: #141414 !important;", | |
"}" | |
].join("\n"); | |
css += [ | |
"/*Pipelines*/", | |
".pipelines .content_wrapper_inner {background-color:black !important; color:silver !important;}", | |
".pipelines .pipeline {background-color:#333333 !important; color:silver !important;}", | |
".back_to_top {background-color:#777777}", | |
"/*Environments*/", | |
".materials_count.hidereveal_expander {color:silver}", | |
"/*pipelineHistory*/", | |
"/*.pipeline-history-group .pipeline-info, .pipeline-history-group .detail {background-color:black !important; color:silver !important}*/", | |
"/*.empty-stage, .passed-stage, .failed-stage, .failing-stage, .cancelled-stage, .building-stage {border-bottom: 25px solid black;}*/", | |
"/*.force-run-pipeline-disabled {background-color: purple !important;}*/", | |
"/*.pipeline a {color:#1F629A}*/", | |
".current_tab, sub_tab_container {background-color:black}", | |
"/*ValueStreamMap*/", | |
"#value_stream_map .highlight {background-color:#222222}", | |
"#vsm-container {background-color: black;}", | |
"#vsm-container .pipeline {background-color: #333333; color:silver}", | |
"#vsm-container .message {background-color: black; color:silver}", | |
"#vsm-container .show-more a {background-color: black; color:silver}", | |
"#vsm-container .actions {background-color: #444444; color:silver}", | |
".vsm-entity {border-color: #555555}", | |
"/*#MB_window {width: 1060px !important;}", | |
".change_materials .smartfill_content li {width:500px}", | |
".materials .material_summaries, .materials .content_wrapper_outer {width:45% !important}*/" | |
].join("\n"); | |
if (typeof GM_addStyle != "undefined") { | |
GM_addStyle(css); | |
} else if (typeof PRO_addStyle != "undefined") { | |
PRO_addStyle(css); | |
} else if (typeof addStyle != "undefined") { | |
addStyle(css); | |
} else { | |
var node = document.createElement("style"); | |
node.type = "text/css"; | |
node.appendChild(document.createTextNode(css)); | |
var heads = document.getElementsByTagName("head"); | |
if (heads.length > 0) { | |
heads[0].appendChild(node); | |
} else { | |
// no head yet, stick it whereever | |
document.documentElement.appendChild(node); | |
} | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment