Obviously stupid advice which doesn't follow through on the majority of cases.
That said, I actually did work nights and weekends at my previous job and it helped me tremendously. Ended up moving from a bottom rung associate to a senior position in only 1 year. I was all over the place learning, fixing, making connections, and just being available which goes a long way. Our team played video games together after work sometimes, and I would always see them online playing Guild Wars or something while I was neck deep in some issue.
Something something bootstraps, whatever. Work culture in America is undeniably toxic as fuck and grinds people into the ground, I would never dispute that. But that's the game... and if you realistically want to get ahead, well, you play the game. I see lots of posters saying fuck their job they aren't working an extra minute. That's fine, you got other priorities, or maybe you just want to fight the system. Whatever. But ask yourself honestly: What if you put in an extra 2 hours a night and a few on the weekend to study, go take classes at university, get a cert, or help out with a project? Would you get ahead? Would it set you up to leave your job for a better one? The answer is probably yes. So then... take it if you want it.