Last active
March 29, 2019 10:15
-
-
Save cail/6396faa89d674feb68b4cb8e32c5b433 to your computer and use it in GitHub Desktop.
tampermonkey gitlab collapse highlighter
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 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