Skip to content

Instantly share code, notes, and snippets.

@yuu-nkjm
Last active August 29, 2015 14:07
Show Gist options
  • Save yuu-nkjm/90cae84e005d852ba077 to your computer and use it in GitHub Desktop.
Save yuu-nkjm/90cae84e005d852ba077 to your computer and use it in GitHub Desktop.
@hayajo さんのgist:6246045 (https://gist.github.com/hayajo/6246045) 「GitHub上で印刷用のレイアウトにするためのブックマークレット」を自分用に改変したもの.
javascript:(function(e,a,g,h,f,c,b,d)%7Bif(!(f=e.jQuery)%7C%7Cg>f.fn.jquery%7C%7Ch(f))%7Bc=a.createElement("script");c.type="text/javascript";c.src="http://ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";c.onload=c.onreadystatechange=function()%7Bif(!b&&(!(d=this.readyState)%7C%7Cd=="loaded"%7C%7Cd=="complete"))%7Bh((f=e.jQuery).noConflict(1),b=1);f(c).remove()%7D%7D;a.documentElement.childNodes%5B0%5D.appendChild(c)%7D%7D)(window,document,"1.3.2",function($,L)%7B$('%23header, .pagehead, .breadcrumb, .commit, %23footer, %23footer-push, .wiki-actions, %23last-edit, .actions, .header, .repo-nav-contents, .file-navigation, .site-footer').remove(); $('%23files, .file').css(%7B"background":"none"%7D); $('link').removeAttr('media');$(".pagehead").remove();$(".discussion-timeline-actions").remove();$(".gist-content").css("width","100%");$(".gist-sidebar").remove();$(".meta").css("padding", "0");%7D);
@yuu-nkjm
Copy link
Author

yuu-nkjm commented Oct 7, 2014

自分でカスタマイズしたい場合は,末尾の%7D);つまり});の直前に追記していく.

@yuu-nkjm
Copy link
Author

yuu-nkjm commented Oct 9, 2014

適用前

### 適用後

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