It’s only a sample of one but I almost doubled my salary by switching jobs. I was bullied and harassed in a shitty startup for more than 3 years. I got fat, almost had a depression and I was not doing anything interesting. Even my skills were decreasing.
A bunch of managers asked me once to do something illegal. HR was also telling me to do this because "it’s an order from the bosses." That was the last straw and I told them to fuck off, and I resigned.
I was underpaid at this shitty company, but I accidentally found another job at a good company with nice people. My salary almost doubled overnight. I don’t want that much money but it was nice "fuck you" to my previous manager that I deeply thanked for being such an asshole.