Skip to content

Instantly share code, notes, and snippets.

@macghriogair
Last active August 31, 2018 15:06
Show Gist options
  • Save macghriogair/82186d39d6fcb18c3373d08f598443ad to your computer and use it in GitHub Desktop.
Save macghriogair/82186d39d6fcb18c3373d08f598443ad to your computer and use it in GitHub Desktop.
Tampermonkey Remove Redmine Prio Styles #tampermonkey
// ==UserScript==
// @name Redmine hide useless colors
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author pmg
// @include https://redmine.3pc.de*
// @grant none
// ==/UserScript==
(function() {
'use strict';
console.log('Wait a moment, let me fix these priority styles for you...!');
var node = document.createElement('style');
var str = 'table.list tr.priority-1:before,';
str+= 'table.list tr.priority-2:before,';
str+= 'table.list tr.priority-3:before,';
str+= 'table.list tr.priority-4:before,';
str+= 'table.list tr.priority-5:before';
str+= '{ background-color: white;}';
node.innerHTML = str;
document.body.appendChild(node);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment