Created
January 20, 2017 22:36
-
-
Save bcaldwell/11b9c84c87bcc402ae062aaba438126c to your computer and use it in GitHub Desktop.
Remove noise when printing with GitHub
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
var styleEl = document.createElement('style'); | |
styleEl.type = 'text/css'; | |
styleEl.innerHTML = '@media print { body { min-width: 0; } .header, .gh-header-actions, .repository-sidebar, #wiki-rightbar, .site-footer { display: none; } .container, .repository-with-sidebar .repository-content, .repository-with-sidebar.with-full-navigation .repository-content { width: auto; float: none; } .has-rightbar #wiki-body, #wiki-body .markdown-body { margin-right: 0; } a { color: #333; text-decoration: underline; } div.header, div.pagehead, div.file-navigation, div.commit-tease, div.file-header { display: none; } div.file, div.container { margin: 0; } div.file { border: 0; }}'; | |
document.documentElement.appendChild(styleEl); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment