Allows for easily exporting Substack articles to PDF or print.
Substack print to PDF by sylsau
Details
Authorsylsau
LicenseNo License
Categorysubstack.com, www.worksinprogess.news, www.palladiummag.com
Created
Updated
Size1.8 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
Tired of endlessly tweaking webpages just to make a proper PDF from a Substack article? Then today is the day you take back control of your life.
Source code
/* ==UserStyle==
@name Substack print to PDF
@namespace github.com/openstyles/stylus
@version 1.0.0
@description Allows for easily exporting Substack articles to PDF or print (Firefox only).
@author Sylvain S.
==/UserStyle== */
/* USUAL SUBSTACK SITES */
@-moz-document regexp("https://.*[.]substack[.]com/p/.+"), regexp("https://www[.]worksinprogress[.]news/p/.+"), regexp("https://www[.]cremieux[.]xyz/p/.+"), regexp("https://www[.]aporiamagazine[.]com/p/.+"), regexp("https://www[.]exfatloss[.]com/p/.+"), regexp("https://www[.]astralcodexten[.]com/p/.+"), regexp("https://www[.]malone[.]news/p/.+"), regexp("https://www[.]allcatsarefemale[.]com/p/.+"), regexp("https://www[.]robkhenderson[.]com/p/.+"), regexp("https://www[.]betonit[.]ai/p/.+") {
/* Avoid breaking pictures between pages and resize img */
figure {
break-inside: avoid !important;
}
img {
width: 100% !important;
}
/* Hide unwanted elements */
div.main-menu, div.subscribe-widget, .button-wrapper, .post-ufi, div.tw-hidden, div.tw-w-full, div.pullquote, ote, div.image-link-expand, div.facepile, div.subscription-widget-wrap, div.embedded-publication-wrap, div.container-border, div.post-footer, div.post-contributor-bio-controls, div.portable-archive, div.subscribe-footer, div.footer-wrap, div.post-end-cta-full, div.comments-section, div.pencraft > button, div[data-testid="recommendation-footer"], div#discussion {
display : none !important;
}
}
/* PALLADIUM MAG SUBSTACK */
@-moz-document regexp("https://www.palladiummag.com/20.+") {
/* Avoid breaking pictures between pages */
figure {
break-inside: avoid !important;
}
/* Hide unwanted elements */
nav, .cat-links, footer {
display : none !important;
}
}