I think the best thing you could do is to keep on working but try your very best to not let it get to you. I know that's hard, but this tip will make it easier, it did for me when I was in similar situations of desperately not wanting to be somewhere but had to: Just cut lose and act or say what you want to, and if you get fired for it, then that's that. If someone says something condescending to you, be dismissive of them even if it is your boss. Then the ball is in their court and they have to decide how they want to respond
Just chill out as much as you can and without actually telling them to "fucck off," tell them to fucck off by an apathy to workplace rules that stress you out, an apathy to their opinions that you don't like, etc