Skip to content

Instantly share code, notes, and snippets.

@jikkujose
Last active February 18, 2017 19:06
Show Gist options
  • Save jikkujose/50a6c7e11a04ce25cdf4bce9983da7b7 to your computer and use it in GitHub Desktop.
Save jikkujose/50a6c7e11a04ce25cdf4bce9983da7b7 to your computer and use it in GitHub Desktop.
Fix jarring colours for Generals in night mode
/*
Convert to bookmarklet using http://chriszarate.github.io/bookmarkleter/
*/
(function() {
var node = document.createElement('style');
document.body.appendChild(node);
window.addStyleString = function(css) {
node.innerHTML += css;
}
window.switchColor = function(from, to) {
addStyleString('.' + from + ' { background-color: ' + to + ' !important }')
}
switchColor('red', 'maroon')
switchColor('blue', 'green')
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment