Some San Francisco police officers are going undercover – waaayyy undercover – this week. They’ve agreed to, gasp, wear L.A. Dodgers jerseys at AT&T Park.

The Giants start a three-day series against their dreaded rivals Monday night, and Police Chief Greg Suhr and Mayor Ed Lee announced they’re sending many officers posing as Dodgers fans to the games in hopes of catching any over-the-top behavior before it erupts into violence. Lee said it’s an effort to prevent an incident like the beating of Giants fan Bryan Stow after a Dodgers game last year.

“We want to make sure there isn’t anyone out there intent on doing harm,” Lee said. “We’re going to keep our city safe for everyone to enjoy the game.”

Suhr said he wasn’t sure he could convince his officers to don the hated jerseys, but that several, shall we say, stepped up to the plate. He said he’s pulling a page from his own playbook (oh, sports puns are just way too easy!) since he similarly sent officers undercover in New York Giants gear to a playoff game against the 49ers in January.

By the way, Lee had another baseball announcement: he’ll award Giants pitcher Matt Cain a key to the city at Tuesday’s game, noting he’s still “starry-eyed” by Cain’s perfect game.

“We’re letting the Dodgers know we’ve got a perfect game this season – what do you got?” Lee quipped.