I find it extremely annoying that I know I had a solution for this and I can't remember which program even provided it. I must have been some developer thing, I guess.
For now, I'll use Firefox. I just figured out it does this, there's a "print selection only" checkbox in the print dialogue.