Weekends, sick days, vacation days, being paid in legal tender and not company scrip, maternity leave, safety regulations, disabled affordance, banning child labor, civil rights and womens' rights (while they lasted) and the minimum wage. All due to socialist activism and a non-zero amount of violence.
Child went away mostly on its own (as did labor by the disabled) because industrialization made all that non-competitive compared to a normal adult operating some machine. Then, once child labor was relegated to a few niches of limited overall economic importance the government showed up and banned it to win a few brownie points from some jerks.
Child labor isn't a success of some socialists 100yr ago. It's a success of some propagandists 100yr ago.