Out-of-control socialite taxi-basher Dori Cooperman spent a harrowing morning yesterday amid the grime and crooks of Manhattan Criminal Court, where she cleared up an embarrassing cocaine and criminal-mischief case, then went on an expletive-heavy tirade.

“This is a f–king pain in my f–king a–,” Cooperman, 41, announced, nearly wiping out on the snow-swept steps outside the courthouse as she tried to outrun news photographers in snakeskin-trimmed platform stilettos.

“My picture is NOT going to run in The Post!” she growled, pulling her mink bolero jacket over her head and clicking unsteadily across the icy granite on thin, miniskirted legs.

Society blogger Cooperman — daughter of Edwin Cooperman, former chairman of Travelers Bank Group who is known to foot her bills — was in court to clear up a decidedly downmarket incident with a cabby and some police officers from March.

According to the criminal complaint against her, Cooperman had taken a cab from 61st Street and Fifth Avenue to 14th Street and Ninth Avenue and refused to pay the $22.50 fare. Instead, she repeatedly slammed the cab’s passenger door, shattering the glass, the complaint says.

“There’s nothing you can do to me!” cops said she hollered when they arrived at the scene. “Get off me! What are you doing? I’m going to call my father! You don’t know who I am!”

She was charged with possessing a small quantity of cocaine and with criminal mischief for allegedly breaking not only the cab window but the cop-car window, as well.

Yesterday, Manhattan Criminal Court Judge Erika Edwards allowed Cooperman to withdraw her previous misdemeanor plea and replead to a lesser charge of disorderly conduct, a violation. The deal had been contingent on Cooperman completing drug rehab and staying out of trouble for the past six months.