Skip to content

Instantly share code, notes, and snippets.

@seven1m
Created January 6, 2016 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seven1m/09036d10772b361813be to your computer and use it in GitHub Desktop.
Save seven1m/09036d10772b361813be to your computer and use it in GitHub Desktop.
// ==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