You can't print this blog post
Update! It's fair to say no one liked this idea - so I've reverted it. Thanks for all the feedback 🙂
Do you ever see those daft email footers which say "Please consider the environment before printing this email." Like, who the fuck is still printing out their emails?
Anyway, a few years ago I went along to a blogging event where someone had printed out one of my blog posts. I was stunned. They'd stuck of loads of my posts (and other people's posts) on a mood board. Because I'm a digital fundamentalist, this pissed me off - what a waste of paper. Printing off a blog post is like making a radio broadcast of a sunset. Just pointless.
Luckily, there's a (very weak) form of DRM you can use to dissuade people from printing off your web pages:
CSS
@media print {
html { display: none; }
}
CSS has Media Rules for printing. You're supposed to use it to remove background images, menu bars, and other things which aren't useful. In this case, I've just told the browser not to display any content when it tries to print.
You can go a little further. This stops the page from rendering when printed, and adds a handy error message:
CSS
@media print{
body { display: none; }
html::after {
content: "Please consider the environment before printing this blog.";
}
}
I've tested this, and it works in Firefox, Safari, and Chrome. It's trivial to defeat this technical protection mechanism if you're handy with developer tools - but I guess those aren't the people who are printing off the entire Internet.
Reply to original comment on twitter.com
|Reply to original comment on twitter.com
|Reply to original comment on twitter.com
|@edent says:
Print to PDF is a good and accessible method for archiving pages that preserves formatting. Web developers can spend two minutes out of every year to add a
@media (print) { some-miniscule-layout-fixes-to-optimize-for-print }
and their users will get a good-enough archival format when they need it.Reply to original comment on twitter.com
|Reply to original comment on csdisaster.club
|Reply to original comment on husk.site
|For example, my parents get a visitor to print emails so that my Mum (who is bedridden and who can’t use an electronic device due to mental confusion) can enjoy reading them to my Dad who is blind. This gives them both pleasure.
You might argue that your blog posts aren’t aimed at my parents and you would be right, but I am sure that there are other examples of perfectly good reasons why people want or need to print your stuff.
If I do, I’m sufficiently web-savvy to copy it to a something that will print.
Why take away a sensible feature that you don’t know all the use-cases for?
(And I recall you got quite narked with an app that did that to you recently)
Reply to original comment on twitter.com
|Michael says:
Reply to original comment on twitter.com
|Reply to original comment on twitter.com
|Reply to original comment on mcd.dk
|Alcides Fonseca says:
Look, I get the desire to minimise your environmental footprint, I'm trying to do the same here as much as possible. But there's no need to be snarky about it.
@edent says:
@edent says:
Anyway, I think this discussion is missing the point. You are actively sabotaging a browser feature because you think know better than your users how they want to interact with your content. It's like disabling right or middle clicking or hijacking the back button.
You're of course free to do whatever you want, especially on your own personal site. But I think you can see from the rest of the comments how people feel about this.
Reply to original comment on twitter.com
|If this takes off browser might decide they ignore this rule, just like autocomplete="off" doesn't always turn autocomplete off.
Reply to original comment on twitter.com
|Reply to original comment on twitter.com
|- so that they can 'work with it' by hand (including a dyslexic person)
- so that they can take it in the car and fill out forms on their phone while watching the kids
I save my hate for screens that use up all the ink…
Reply to original comment on twitter.com
|Reply to original comment on twitter.com
|@edent says:
Reply to original comment on twitter.com
|Reply to original comment on twitter.com
|Reply to original comment on twitter.com
|Reply to original comment on twitter.com
|Reply to original comment on twitter.com
|Suw says:
@edent says:
Suw says:
You can save a screenshot of a multi-screen page using Firefox's built-in "Take Screenshot" feature (on the right-click menu, or Ctrl-Shift-S), then selecting "Save full page" at the top right. Sometimes you have to scroll to the bottom so that all the images load.
It's possible this counts as specialist software.
Suw says: