Printing articles from Habrahabr
Trying to print the article with Habra, and it is not printed? While the creators Habra mend their styles, you can use mine, available as a bookmarklet, style for Stylish or in the source view.
/ > It removes everything that is not necessary, fixing the text wrapping to another sheet, reduces large elements, adds links to address.
It does not print comments. If necessary, I will.
It does not print the header. The browser itself usually does it.
It is unknown how it works in Internet Explorer. Go to another browser.
Since the parser is very strict Chabry, put the bookmarklet here I can not (or do not) in any form. There are two solutions:
For discussion, the code posted here:
Waiting for positive comments and grammar corrections. ^_^
Article based on information from habrahabr.ru
/ > It removes everything that is not necessary, fixing the text wrapping to another sheet, reduces large elements, adds links to address.
It does not print comments. If necessary, I will.
It does not print the header. The browser itself usually does it.
It is unknown how it works in Internet Explorer. Go to another browser.
Since the parser is very strict Chabry, put the bookmarklet here I can not (or do not) in any form. There are two solutions:
-
the
- to Drag it to your bookmark my website. the
- to Create a new bookmark and enter in the field "address" that's the thing:
javascript:function addCss(z){var s=document.createElement('style');s.type = 'text/css';if(s.styleSheet){s.styleSheet.cssText=z;}else{s.appendChild(document.createTextNode(z));}document.getElementsByTagName('head')[0].appendChild(s);}addCss('*{background:white!important;color:black!important;overflow:visible!important;max-width:8.2 in}h1,h2,h3,h4,h5,h6{page-break-after:avoid}pre,code,samp{white-space:pre-wrap;page-break-inside:avoid}ul,ol,li{page-break-inside:avoid}table table,tr,td{page-break-before:avoid;page-break-after:avoid}body>a,#header-wrapper,#header,#footer,#sidebar,.page-navigation,#comments,.entry-title .blog,.tags,.entry-info,.entry-title{display:none!important}.content{width:8.2 in!important;margin:0!important;padding:0!important;float:none!important;color:black;font-size:12pt!important;line-height:120%!important;font-family:Georgia,serif!important}a{text-decoration:none!important;color:black!important}.content a:link:after,.content a:visited:after{content:" (" attr(href) ")";font-size:90%}');
For discussion, the code posted here:
* {
background: white !important;
color: black !important;
overflow: visible !important;
max-width: 8.2 in;
}
h1,h2,h3,h4,h5,h6 { page-break-after: avoid }
pre,code,samp { white-space: pre-wrap; page-break-inside: avoid }
ul, ol, li { page-break-inside: avoid; }
table table,tr,td { page-break-before: avoid; page-break-after: avoid }
body > a,
#header-wrapper, #header, #footer, #sidebar,
.page-navigation, #comments, .entry-title .blog,
.tags .entry-info, .entry-title { display: none !important }
.content { width: 8.2 in !important;
margin: 0 !important;
padding: 0 !important; float: none !important;
color: black;
font-size: 12pt !important; line-height: 120% !important;
font-family: Georgia, serif !important }
a { text-decoration: none !important; color: black !important }
.content a:link:after,
.content a:visited:after { content: "(" attr(href) ")"; font-size: 90% }
Waiting for positive comments and grammar corrections. ^_^
Комментарии
Отправить комментарий