Last active
August 29, 2015 14:05
-
-
Save logandk/f699e5c5acf4cd5cac32 to your computer and use it in GitHub Desktop.
Better Trello Print
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 Better Trello Print | |
// @namespace https://trello.com/ | |
// @include https://trello.com/ | |
// @require http://code.jquery.com/jquery-latest.js | |
// ==/UserScript== | |
var styles = "@media print{*{text-shadow:none!important}#surface{height:auto!important}body{overflow:visible!important}.attachment-thumbnail,.phenom,img{page-break-before:auto;page-break-after:auto;page-break-inside:auto;position:relative}#header{display:none}#notification{display:none!important}#board{height:auto!important;margin-left:0!important;overflow:visible!important;display:-webkit-flex!important}.list{float:none;margin-bottom:16px;max-height:none!important;width:260px!important}.list-cards{max-height:none!important;-moz-box-flex:0;-webkit-box-flex:0;-ms-flex:0 0 auto;-webkit-flex:0 0 auto;flex:0 0 auto}.extra-large-window .list,.large-window .list{-webkit-box-shadow:none;box-shadow:none;float:none}.list-header .icon-sm{visibility:hidden}.list-header .list-title{margin-left:12px}.open-card-composer{display:none}.list-card{border:1px solid #dbdbdb;border-bottom-color:#c2c2c2;width:auto!important}.badge,.board-widgets,.list-card-votes,.member .status{display:none}.pop-over,.other-actions,.quiet-actions,.window-sidebar .button-link,.card-detail-desc .quiet-button,.chechklist-new-item,.new-comment{display:none!important}.card-label{color:#393939}.hide-on-edit,.card-detail-item-add-button{display:none}.checklist-progress-bar{-webkit-box-shadow:none;box-shadow:none;border:1px solid #e3e3e3}.checklist-progress-bar-current{height:7px;margin-top:1px;border:1px solid #777}.action-comment{border:1px solid #dbdbdb;-webkit-box-shadow:none;box-shadow:none}.editable .current{display:block!important}.editable .edit,.editable .edits-warning{display:none!important}body.window-up #content{display:none}body.window-up #surface{display:none;min-height:initial;height:auto!important}body.window-up .window-overlay{background:#fff;display:block!important;height:auto;overflow:visible;position:relative}body.window-up .window-sidebar,body.window-up .dialog-close-button{display:none}body.window-up .window{position:relative!important;left:auto!important;top:auto!important;width:700px!important}body.window-up .window input,body.window-up .window textarea{display:none}body.window-up .window-wrapper{background:#fff}.sidebar-show-btn{display:none!important}.add-list{display:none!important}body{background-color:#fff!important}.board-header-btn{color:#222!important}}@page{size:100cm 100cm}"; | |
$('head').append('<style type="text/css">' + styles + '</style>'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment