They put pop-up stealth advertisements, targeted at your doctor, into your electronic medical record, so that he or she would get you addicted to painkillers.
Software developers did this. For drug money. That's just terrible, isn't it? They shouldn't have done that.
But even if the developers had ethical concerns, they had no recourse but to quit, and be replaced by someone else--who might get six months of work in before realizing that they are working for the baddies, and also deciding to either quit or die a little inside.
I would do that job. I would take that money. I don't get a stupidly-inflated Valley salary with bonus RSUs, and I have bills to pay. I don't have a union that can protect me from nonsense. I know it's wrong. I would do it anyway, because I have been screwed by every company I have ever worked for, such that I learned that my ethics don't matter. Money matters.
I want my kids to get an education without student loans, if they want it. I want to drive a car that isn't older than they are. And I want to retire before I die. My ethics would only keep me from that. Apparently, the companies that aren't managed by money-grubbing sociopaths just don't hire where I live. So if you don't want stuff like this to happen, make it actually mean something to have ethical objections, even for people working outside of California.
I build software that has probably contributed in a material way to human suffering. For far less money than a Silicon Valley developer might get paid to make a mobile app for on-demand dog-walking. Everyone in my building does it. Everyone in the building across the street does it. Companies that don't hurt people as part of their business model aren't hiring here. People that have a problem with it--or at least those who can't hide that they do--don't get the jobs.
So if you are currently on a high horse, I hope you enjoy the view from up there. You haven't yet used your influence to help other workers--those with nigh-nonexistent power as an individual to influence the corporate employers that reluctantly hire them, and then reserve the right to fire at any time for any reason, or no reason.