Skip to content

Instantly share code, notes, and snippets.

@blaxkmaze
Forked from beevelop/gitprint.js
Created March 7, 2018 02:03
Show Gist options
  • Save blaxkmaze/a999d626302c40170d0a9d346c09d00b to your computer and use it in GitHub Desktop.
Save blaxkmaze/a999d626302c40170d0a9d346c09d00b to your computer and use it in GitHub Desktop.

Revisions

  1. @beevelop beevelop created this gist Apr 11, 2017.
    3 changes: 3 additions & 0 deletions gitprint.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    document.querySelector('#readme').setAttribute('style', 'position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 100; background-color: white')
    document.querySelector('body').appendChild(document.querySelector('#readme'))
    window.print()