Skip to content

Instantly share code, notes, and snippets.

@yu81
Forked from tricknotes/printout.js
Last active December 23, 2015 11:59
Show Gist options
  • Save yu81/6632505 to your computer and use it in GitHub Desktop.
Save yu81/6632505 to your computer and use it in GitHub Desktop.
// For printout https://gist.github.com
// DOM
$('#header').remove();
$('#repos').remove();
$('.secondary').remove();
$('.meta').remove();
$('#footer').remove();
$('.push').remove();
$('#comments').remove();
$('#delete_link').remove();
// Style
$('link[media=screen]').attr('media', 'all');
$('.main').css('width', '100%');
// Extra Classes
$('.pagehead').remove();
$('.root-pane').remove();
$('.gist-description').remove();
$('.js-comment-form').remove();
$('.line-numbers').remove();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment