A New York Giants fan in Rhode Island allegedly went nuclear over the New England Patriots signing Antonio Brown — and threatened to “pull a white boys school shooting” at Gillette Stadium on Facebook, officials said Monday.

Tobias Gray, who originally hails from New York and posts rap music online under the moniker Unibomba187, is wanted by Foxborough police for allegedly threatening to unleash a mass shooting at the Patriots stadium, where the home team creamed the Pittsburgh Steelers 33-3 on Sunday night.

“I’m going to pull a white boys school shooting at Foxboro,” he allegedly wrote in the since-deleted post obtained by CBS4.

“You might as well hand them the ring right now I’m if I ever get my hands on a gun which I don’t have one yet but I’m looking I will go shoot up random people at Foxboro.”

The defending Super Bowl champions on Saturday signed a one-year, $15 million contract with the controversial receiver.

Gray appeared Monday in a Providence courtroom on a separate domestic assault charge — wearing a Giants jersey — and didn’t fight extradition to Massachusetts, where he’s wanted for the alleged Gillette Stadium threat.

“They’re going to have me on the news looking like some villain,” the handcuffed 44-year-old told his lawyer during the brief hearing, according to footage from WPRI-TV.

Gray’s attorney, Stefanie DiMaio-Larivee, told The Post that if her client did write the threat “he wasn’t thinking obviously.”

“My client says he never meant any harm,” said DiMaio-Larivee.

Foxborough police issued a statement Monday morning saying they are “withholding comment at this time.”

Gray is being held on $25,000 bail in East Providence.

Foxborough police will be coming to get him within the next two days so he can be arraigned in Massachusetts, his attorney said.