Skip to content

Instantly share code, notes, and snippets.

@bbinet
Created March 15, 2013 09:00
Show Gist options
  • Save bbinet/5168479 to your computer and use it in GitHub Desktop.
Save bbinet/5168479 to your computer and use it in GitHub Desktop.
Trello: Hide all cards that have specific color labels
// ==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