Created
March 15, 2013 09:00
-
-
Save bbinet/5168479 to your computer and use it in GitHub Desktop.
Trello: Hide all cards that have specific color labels
This file contains hidden or 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 trello-hide-labelled-cards | |
// @namespace trello | |
// @version 0.1 | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js | |
// @description Trello: Hide all cards that have specific color labels | |
// @match https://trello.com/board/* | |
// @copyright 2013+, Bruno Binet | |
// ==/UserScript== | |
// list of label colors for cards to be hidden | |
var hidden_colors = ["purple"]; | |
var hide_cards = function() { | |
for (var i=0, len=hidden_colors.length; i<len; i++) { | |
$(".list-card:has(." + hidden_colors[i] + "-label)").addClass("hide"); | |
} | |
}; | |
$(document).ready(function() { | |
setInterval(hide_cards, 10000); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment