I've never worked with a Javascript developer who was responsible in any way for their employer's adtech and dark UX patterns strategy. In my experience, those decisions are always made by PMs and approved by the board.
Your comment seems like an opportunistic attack on a type of developer you don't personally like rather than something that is rooted in reality.
> for their employer's adtech and dark UX patterns strategy
well, generally a JavaScript developer is just a frontend developer so I'm assuming at least some have experienced a PM saying: too many people are doing X which we don't want them to do, how do we keep them from doing X? And the developer then makes helpful suggestions.
Your comment seems like an opportunistic attack on a type of developer you don't personally like rather than something that is rooted in reality.