Skip to content

Instantly share code, notes, and snippets.

@rottenbytes
Created July 3, 2012 10:05
Show Gist options
  • Save rottenbytes/3038875 to your computer and use it in GitHub Desktop.
Save rottenbytes/3038875 to your computer and use it in GitHub Desktop.
Grease monkey to change CSS in redmine/chiliproject
// ==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