A Brooklyn gangbanger was busted Monday for making threats against cops after the assassination of two police officers over the weekend, law-enforcement sources told The Post.

Devon Coley, 18, was charged with making a terroristic threat after he posted on his Facebook page “73Next” – a reference to the 73rd Precinct in Brownsville — beside a cartoon showing an arm pointing a gun at a police officer’s head, sources said.

Below the cartoon, there was a picture depicting a gunman spraying bullets into a marked police car.

The posting appeared just hours after two NYPD officers were fatally shot while sitting in their patrol car in Brooklyn.

Coley is a known member of the ATC/180HII gang, law-enforcement sources said.

Investigators are also probing several other threats against NYPD cops since the officers’ murder, sources said.

On Saturday afternoon, Officers Wenjain Liu and Rafael Ramos were gunned down by cop-hating Ismaaiyl Brinsley while they were sitting in their marked police car in Bedford-Stuyvesant.

Brinsely had strolled up to the cruiser and unloaded at least five shots, hitting the two officers in their heads.

Hours earlier, Brinsely had shot and critically wounded his ex-girlfriend in Baltimore.

While driving to New York City, he posted several threatening messages on Instagram.

“I’m Putting Wings on Pigs Today,” he wrote.

“They Take 1 Of Ours . . . Let’s Take 2 of Theirs,” the post continued, ending with, “This May Be My Final Post.”

He also posted images of a silver automatic handgun believed to have been used in the shooting of the cops.

Police Commissioner Bill Bratton later called the vicious shooting an assassination, noting that Brinsley targeted the the cops because of the uniform they wore.