Created
July 3, 2012 10:05
-
-
Save rottenbytes/3038875 to your computer and use it in GitHub Desktop.
Grease monkey to change CSS in redmine/chiliproject
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 Redmine color change | |
// @namespace nico | |
// @description Change CSS in redmine | |
// @include https://XXXXX* | |
// @version 1 | |
// ==/UserScript== | |
function addCss(cssString) { | |
var head = document.getElementsByTagName('head')[0]; | |
var newCss = document.createElement('style'); | |
newCss.type = "text/css"; | |
newCss.innerHTML = cssString; | |
head.appendChild(newCss); | |
} | |
addCss ('.list .issue.status-4 { \ | |
background-color: #92e8b6 \ | |
!important; \ | |
}'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment