Toxic work environment

I work at a place that would seem to categorize as toxic. The facts are there is a lot of yelling, screaming, people storming out and superiors scream at you telling you how you are not doing things right. I know thinking this is negative place and that is toxic is a thought I choose to think. And I really want to accomplish being happy here before leaving as you suggest.

My question is. How can I manage my thoughts so that I can be happy in a place I get yelled at frequently instead of changing the job (my circumstance) to change my feelings.