Created
January 6, 2016 21:48
-
-
Save seven1m/09036d10772b361813be to your computer and use it in GitHub Desktop.
This file contains 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 Tweaks | |
// @namespace http://timmorgan.org | |
// @include https://trello.com/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
// press Q to show cards not assigned to anyone | |
var showingUnassignedCards = false; | |
function toggleUnassignedCards() { | |
if (showingUnassignedCards) | |
$('.list-card').removeClass('hide'); | |
else | |
$('.list-card').filter(function(i, c) { return $(c).find('.list-card-members *').length > 0 }).addClass('hide'); | |
showingUnassignedCards ^= true; | |
} | |
function keyup(e) { | |
if (e.key == 'Q') | |
toggleUnassignedCards(); | |
} | |
document.addEventListener('keyup', keyup, false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment