Skip to content

Commit

Permalink
Add trello card colorizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Grippi committed Apr 23, 2013
1 parent 199ba02 commit ca68fc1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Trello/card_colorizer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// ==UserScript==
// @name Trello Card Colorizer
// @namespace http://petergrippi.com/
// @description adds color to cards
// @include https://trello.com/board/*
// ==/UserScript==
/*jslint browser: true, sub: false, white: false, maxerr: 50, indent: 2 */
(function(){
"use strict";

var root = this;
var $ = root.jQuery;
$('.card-label').each(function(){
var $this = $(this);
$this.closest('.list-card').css('background-color', $this.css('background-color'));
});
}).call(this);

0 comments on commit ca68fc1

Please sign in to comment.