(Will get a better description in time. I'm leaving it short in case we already have this and I missed it, or it's deemed not tropeable for some other reason.)
Essentially, this trope is about the tendency of humorous works, especially more recent ones, to rely heavily on morally ambiguous (or even outright evil) characters and plotlines, apparently under the idea that "good isn't funny."
Examples include a large segment of the comedy genre, but the ones that led me to notice the trend in the first place were Futurama
, Dragon Ball Z Abridged
, and Borderlands 2