Skip to content

Instantly share code, notes, and snippets.

@cail
Last active March 29, 2019 10:15
Show Gist options
  • Save cail/6396faa89d674feb68b4cb8e32c5b433 to your computer and use it in GitHub Desktop.
Save cail/6396faa89d674feb68b4cb8e32c5b433 to your computer and use it in GitHub Desktop.
tampermonkey gitlab collapse highlighter
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match http://gitlab.rdc.aquantia.com/*
// @grant none
// ==/UserScript==
function GM_addStyle (cssStr) {
var D = document;
var newNode = D.createElement ('style');
newNode.textContent = cssStr;
var targ = D.getElementsByTagName ('head')[0] || D.body || D.documentElement;
targ.appendChild (newNode);
}
(function() {
'use strict';
GM_addStyle ( `
.diff-collapsed {
background: #FF2020 !important;
}
` );
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment