If I want to print a markdown file from GitHub as it appears on screen, for example: https://github.com/RestKit/RestKit/blob/master/Docs/Object%20Mapping.md
Then how can
Works for Chromium browsers and "current" GitHub html page structure
javascript:var content = document.querySelector('.repository-content');
var toc = document.querySelector('#wiki-rightbar');
toc.innerHTML = '';
var wb = document.querySelector('.has-rightbar .wiki-body');
wb.style.marginRight = '0px';
var body = document.querySelector('body');
body.innerHTML = '';
body.appendChild(content);
window.print();
Selects the Wiki text, removes and formats the table of content, replaces the body content and calls the printer.