Skip to content

Instantly share code, notes, and snippets.

@julianh2o
Created May 9, 2016 23:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julianh2o/22f2cb98e3d7486aeb72f07530e94381 to your computer and use it in GitHub Desktop.
Save julianh2o/22f2cb98e3d7486aeb72f07530e94381 to your computer and use it in GitHub Desktop.
Changes the color of subtractions in Github diffs (Tampermonkey)
// ==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