About 300 people took to the streets of New York City to protest the recent police shootings in Louisiana and Minnesota, just one day after five police officers were killed and seven others wounded during a protest in Dallas.

The protesters gathered in Manhattan's Union Square Friday night and chanted "hands up, don't shoot" and "no justice no peace."

After a spate of speeches, with some urging the crowd to behave, the protesters split into small groups escorted by police.

One group marched across the Williamsburg Bridge into Brooklyn while another went uptown and marched through Grand Central Terminal, chanting "black lives matter." The protesters mostly kept to the sidewalks.

"We're not walking against police," said one rally leader at the Williamsburg Bridge. "We're against bad cops. These guys have family."

The crowd listened and stuck to the walkways of the bridge, avoiding traffic. It was a drastically different tone for a protest against police brutality, with the massacre in Dallas still fresh in people's minds.

"Our condolences go out to those people," said protester Anthony Robeldo. "The same way we lost family members, they lost family members."

The protesters were still demanding justice for black men killed by officers and were still holding signs saying "Black Lives Matter." But some also held signs saying, "We mourn for Dallas too."

"There are a lot of cops that do protect and serve and are honest and do good things -- and there are a lot of cops that are not," said Jamilla Wright-Coleman.

Police were present in big numbers, too, some talking with protesters. Many blocked traffic ahead of protesters to clear the way for them to march. Unlike the protests in New York City Thursday night, there were no outbreaks of violence or arrests.

Forty people were arrested in Thursday's protests in New York City before news of the Dallas shootings broke.

Authorities believe the suspect in Thursday night's attack in Dallas acted alone. He was killed by a police robot-delivered bomb.

The NYPD said Friday it has received 50 threats against officers since the fatal police shootings of Philando Castile and Alton Sterling but none of those threats have been deemed credible.

The department issued a memo requiring all officers to double up on patrols and to take their meals and breaks in pairs.