I'm going through some things right now, so going to really try and give good advice and dig deep, I think the judging comes from you having the depression and anxiety, so I agree don't give yourself a hard time, recognise that these thoughts are more than likely related to that and that they are false.
just as tonight you posted anyway regardless of the thought, and you hopefully have not regretted your decision, and seen that judging yourself negatively was a mistake. If this worked in past, its definitely not a error or something to negatively judge yourself on.
Judging others well that's a normal part of life really, its unfortunately something all the billions of people in the world do, but when it becomes extreme or takes up too much of your thoughts its also something to try and ignore. I mean although we judge, we shouldn't,as we never know anything about what others are going through. I heard a quote on Real Housewives of New York today and it was something like, 'what you say or think about others and how you make them feel is your path, and how you react to what is said is your path'
I really liked that quote, and it for me, explains why we must try not to judge, but everything in life takes time, all lpattterns take time to break. Be kind to yourself