Skip to content

Instantly share code, notes, and snippets.

@binarybana
Forked from mocoso/print_gollum.js
Last active October 24, 2023 01:41
Show Gist options
  • Save binarybana/4454331 to your computer and use it in GitHub Desktop.
Save binarybana/4454331 to your computer and use it in GitHub Desktop.
javascript:(function(e,a,g,h,f,c,b,d)%7Bif(!(f=e.jQuery)%7C%7Cg%3Ef.fn.jquery%7C%7Ch(f))%7Bc=a.createElement(%22script%22);c.type=%22text/javascript%22;c.src=%22http://ajax.googleapis.com/ajax/libs/jquery/%22+g+%22/jquery.min.js%22;c.onload=c.onreadystatechange=function()%7Bif(!b&&(!(d=this.readyState)%7C%7Cd==%22loaded%22%7C%7Cd==%22complete%22))%7Bh((f=e.jQuery).noConflict(1),b=1);f(c).remove()%7D%7D;a.documentElement.childNodes%5B0%5D.appendChild(c)%7D%7D)(window,document,%221.3.2%22,function($,L)%7B$('%23header,%20.pagehead,%20.breadcrumb,%20.commit,%20.meta,%20%23footer,%20%23footer-push,%20.wiki-actions,%20%23last-edit,%20.actions,%20.header').remove();%20$('%23files,%20.file').css(%7B%22background%22:%22none%22,%20%22border%22:%22none%22%7D);%20$('link').removeAttr('media');%7D);
@clayheaton
Copy link

Awesome. Thank you!

@aspensmonster
Copy link

Thanks from another random user. Came here by way of:

https://stackoverflow.com/questions/9998337/how-to-print-from-github

@csoma
Copy link

csoma commented Sep 26, 2014

Updated to work with the Sep 2014 design: https://gist.github.com/csoma/de71e151607940d6e523

@thierryrene
Copy link

thanks too. this helped me a lot!

@topialla
Copy link

topialla commented Jun 9, 2021

Thank you!
Unfortunately this is broken.
I was redirected here from
https://stackoverflow.com/a/11240990/1842673

@andresh3
Copy link

I find this isn't working anymore :(

So, I present my updated version:

  1. This version leavfes the typical border and some stuff in.
  2. This version strips it entirely down
    Both are available at this gist: https://gist.github.com/andresh3/63446c7ce7e65eed0f216888e66ce79f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment