Skip to content

Instantly share code, notes, and snippets.

@justrjlewis
Created February 18, 2016 16:34
Show Gist options
  • Save justrjlewis/1c7353f7d45e53057615 to your computer and use it in GitHub Desktop.
Save justrjlewis/1c7353f7d45e53057615 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name trello list colors
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Highlight certain columns in Trello.
// @author RJ Lewis
// ==/UserScript==
$(document).ready(function() {
var green = '#61bd4f',
yellow = '#f2d600',
orange = '#ffab4a',
red = '#eb5a46',
purple = '#c377e0',
blue = '#0079bf',
sky = '#00c2e0',
lime = '#51e898',
pink = '#ff80ce',
black = '#4d4d4d',
white = '#fff',
clear = '#b6bbbf';
$('body').hover(function() {
$("h2:contains('[1]')").css('color', black).parents('.list').css('background', green);
$("h2:contains('[2]')").css('color', black).parents('.list').css('background', yellow);
$("h2:contains('[3]')").css('color', black).parents('.list').css('background', orange);
$("h2:contains('[4]')").css('color', white).parents('.list').css('background', red);
$("h2:contains('[5]')").css('color', black).parents('.list').css('background', purple);
$("h2:contains('[6]')").css('color', white).parents('.list').css('background', blue);
$("h2:contains('[7]')").css('color', white).parents('.list').css('background', sky);
$("h2:contains('[8]')").css('color', black).parents('.list').css('background', lime);
$("h2:contains('[9]')").css('color', white).parents('.list').css('background', pink);
$("h2:contains('[10]')").css('color', white).parents('.list').css('background', black);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment