Bookmark to make gist more printable (tested for markdown file only)
javascript:void(
(function(w, d, j) {
// Header
j('.header.gist-header').remove();
j('.gist-detail-intro.gist-banner').remove();
// Main Head
j('.pagehead.repohead').remove();
// Main Container
j('.repository-meta').remove();
j('.file-header').remove()
// Discussion
j('.discussion-timeline').remove();
// Footer
j('.site-footer').parent().remove();
// Adjust Style
j('.container').css({
'width': '100%'
});
j('.file').css({
'margin-top': 0,
'margin-bottom': 0,
'border': 'none'
});
}) (window, document, jQuery));
// Compress using: http://jscompress.com/
// Bookmark:
// javascript:void function(e,o,r){r(".header.gist-header").remove(),r(".pagehead.repohead").remove(),r(".repository-meta").remove(),r(".file-header").remove(),r(".discussion-timeline").remove(),r(".site-footer").parent().remove(),r(".container").css({width:"900px"}),r(".file").css({"margin-top":0,"margin-bottom":0,border:"none"})}(window,document,jQuery);