Last active
February 18, 2017 19:06
-
-
Save jikkujose/50a6c7e11a04ce25cdf4bce9983da7b7 to your computer and use it in GitHub Desktop.
Fix jarring colours for Generals in night mode
This file contains hidden or 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
/* | |
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