Mel Gibson was caught on an infamous recording lashing into a police officer with anti-Semitic rants while being arrested for a DUI, and he was caught on another infamous recording for confessing to beating his then-girlfriend.

But it’s a new era apparently — at least where Gibson is concerned.

While much of America is focused these days on the “toxic masculinity” that has nurtured such alleged sexual predators as Harvey Weinstein, Kevin Spacey, Louis C.K., and even President Donald Trump, the major Hollywood studio film of Gibson, who probably helped define the idea of “toxic masculinity” with his hate-filled rants, was a box-office hit over the weekend.

“Daddy’s Home 2,” a holiday-themed PG-13 sequel to the 2015 male-buddy original starring Will Ferrell and Mark Wahlberg, brought in a better than expected $30 million, the Hollywood Reporter said.

The new film brings in John Lithgow and Gibson playing the fathers of Ferrell and Wahlberg’s characters. It specifically introduces Gibson in the supposedly cutesy role as a crude, rude and lewd former space shuttle pilot who was apparently an absent father.

Common Sense Media, which provides guidance to parents on the appropriateness of different movies, TV shows and games for children, said “Daddy’s Home 2” has lots “of sexual content and iffy messages about sex and gender roles.”

The film also presents Gibson’s character as a “stud” who effortlessly attracts women half or even a third of his age, Common Sense Media said in its review. Moreover, viewers will see him telling his grandsons that he bedded two women at once.

“That went into extra innings,” he leers to the boys, according to the website.

For nearly a decade Gibson was ostracized by Hollywood following his anti-Semitic tirade to a police officer in 2006. Even though the popular actor and Oscar-winning “Braveheart” director quickly apologized, the damage was done, according to the Hollywood Reporter. Power agent Ari Emanuel dumped him as a client and said the industry couldn’t let Gibson get away with “such tragically inflammatory statements.”

Gibson again became the subject of scrutiny in 2010 with the tapes of him making racist and misogynist comments to Oksana Grigorieva, whom he also admitted he physically assaulted.

Eyebrows were raised last year when Gibson’s World War II drama “Hacksaw Ridge” became a hit at the box office and with the Academy Awards, scoring six nominations, including one for Gibson for best director.

But conventional wisdom held that the fallout from the Weinstein revelations, focusing on the mistreatment of women, would lead the public and the industry to rethink their attitudes toward Gibson.

Various sites suggested that Gibson had picked the worst possible time to make a comeback in his first co-starring role in a major studio movie since 2002.

The website The Mary Sue said that Gibson probably assumed that taking on the more villainous father role in the film would ease his transition back to family movie star.

“This is a blatant attempt to rewrite his racist, antisemitic, misogynistic history of abuse as a comedically self-aware ‘bad-boy’ persona,” the Mary Sue said.

The Mary Sue also noted that Gibson has never really taken responsibility for his arrest rant and his abuse toward Grigorieva. Gibson later pleaded no contest to a misdemeanor battery charge stemming from the case.

Gibson has described those incidents as a “rough patch” and blamed the police officer who arrest and “illegally” recorded him, as well as the media that covered his rants, according to the Mary Sue.

But apparently audiences don’t care about Gibson’s well-documented behavior. The industry may not care either, especially with “Daddy’s Home 2” performing better than expected. He currently has two films in post-production which co-star Sean Penn and Vince Vaughn.

Box-office analyst Paul Dergarbedian delivered the bad news to Gibson critics, telling the Hollywood Reporter that his appearance in “Daddy’s Home 2″ didn’t prove to be a deterrent.

It may have even raised his profile, Dergarbedian said.

“If Gibson can stay the course, his prospects as an actor seem bright — something unimaginable just a few short years ago,” he said.