A few days ago I wrote this as one reason why I would decline to do a manuscript review:
"I've already reviewed the manuscript for another journal, it was rejected, and I can't bear to read it again in its resubmitted form to another journal even if I feel that humanity will suffer if this paper is ever inflicted on the world."
If I get a manuscript to re-review for a journal different from the one in the first go-round and the manuscript looks like it has been substantially revised, then I will review it. BUT, if I see the exact same (or very similar) awful manuscript again, it means the authors have ignored my comments completely and are just going to try again in the hopes that they find an editor who will either not send it to me or who will ignore my comments and recommendation.
It's just not a good use of my time. I used to do it, but some manuscripts work their way down the journal food chain and appear somewhere, in some cases with an acknowledgment section in which I am thanked for my input (but no mention that my input was that the paper should never be published and that I violently disagree with the methods, data, interpretations, figures, title, punctuation, citations..).
I should mention that I almost always sign reviews, but being acknowledged in papers I think should never have been published is one time I wish I'd chosen anonymity. When I read a really awful paper, I always wonder "Who reviewed this thing?" and I check the acknowledgments..
I have a colleague who keeps a list of people whose papers he reviews and who don't take his comments into account when revising the paper. If he sees a published paper that does not show that the author revised according to his major review comments, he refuses to review a paper by that author again. I am not that extreme, and am not so far gone that I think all my review comments are so great that a paper revised without them is fatally flawed. But I can sympathize with the feeling that doing the review was a waste of time, so why waste more time?
From the point of view of an editor, I know that most authors provide a detailed and thorough response to reviewer comments, and seldom are major reviewer comments 'ignored' without a reason.
7 months ago