Skip to content

Instantly share code, notes, and snippets.

@mxmilkiib
Last active April 30, 2018 19:01
Show Gist options
  • Select an option

  • Save mxmilkiib/bef9eeaec487333a8b22d1706ff38f04 to your computer and use it in GitHub Desktop.

Select an option

Save mxmilkiib/bef9eeaec487333a8b22d1706ff38f04 to your computer and use it in GitHub Desktop.
Trello List Column Colours
// ==UserScript==
// @name Trello List Column Colours
// @description Highlight certain columns in Trello.
// @include https://trello.com/b/AdniCH2y/to-do
// @require https://code.jquery.com/jquery-1.11.0.min.js
// @version 2.1
// @copyright 2014, Gareth J M Saunders
// ==/UserScript==
$(document).ready(function() {
var black = '#393939',
salmon = '#F4ABB5',
green = '#519839',
ligreen = '#7ABC65',
tur = '#78ACA2',
violet = '#d2b3b7',
liviolet = '#e7d8d4',
white = '#fff';
$('body').hover(function() {
$("h2:contains('Top 5 Next')").css('color', black).parents('.list').css('background', salmon);
$("h2:contains('To Do: Outside')").css('color', black).parents('.list').css('background', liviolet);
$("h2:contains('To Do: Inside')").css('color', white).parents('.list').css('background', violet);
$("h2:contains('Waiting')").css('color', white).parents('.list').css('background', ligreen);
$("h2:contains('To Buy')").css('color', white).parents('.list').css('background', tur);
$("h2:contains('Done')").css('color', white).parents('.list').css('background', green);
$('textarea.list-header-name.mod-list-name.js-list-name-input').css('text-align', 'center').css('margin-left', '4.4%')
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment