Created
May 9, 2016 23:50
-
-
Save julianh2o/22f2cb98e3d7486aeb72f07530e94381 to your computer and use it in GitHub Desktop.
Changes the color of subtractions in Github diffs (Tampermonkey)
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 Github Recolor Diffs | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Red, Green? What's that | |
// @author You | |
// @match https://github.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
var color = '#ff99ff'; | |
var style=document.createElement('style'); | |
style.innerText = ".blob-num-deletion { background-color: "+color+" !important; } .blob-code-deletion { background-color: "+color+" !important; }"; | |
document.getElementsByTagName('head')[0].appendChild(style); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment