Skip to content

Instantly share code, notes, and snippets.

@adamdawkins
Created July 24, 2017 10:13
Show Gist options
  • Save adamdawkins/65f869f9fce7358eaca63cd08794ccb7 to your computer and use it in GitHub Desktop.
Save adamdawkins/65f869f9fce7358eaca63cd08794ccb7 to your computer and use it in GitHub Desktop.
Trello focus: something to paste into the console to hide all lists except the 'now' list.
function focus(label = 'Now') {
$(`[aria-label="${label}"]`).parent().parent().parent().attr('id', 'focus');
$('.list-wrapper:not(#focus)').hide();
$('#header').hide()
$('.board-header').hide();
$('body').css({background: '#fff', fontSize: '18px'});
$('.list').css({background: '#fff', maxWidth: '100%'});
$('.list').css({background: '#fff', maxWidth: '100%'});
$('.list-card').css({maxWidth: '100%', overflow: 'auto', opacity: .5, border: 'none' });
$('.list-card:first-child').css({ fontSize: '45px', marginBottom: '70vh', marginTop: '10vh', opacity: 1 });
$('.list-card-title').css({overflow: 'auto', lineHeight: 1.4});
$('.list-card-details').css({overflow: 'auto', lineHeight: 1});
$('.list-wrapper').css({width: '80vw', marginLeft: '10vw'});
}
focus();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment