A fathers' rights campaigner pleaded guilty yesterday to smashing an egg over the head of Cabinet Minister Ruth Kelly.
Michael Downes (44) hit the then Education Secretary with the egg as she left a courthouse in February.
The Minister arrived at Trafford Magistrates' Court yesterday to give evidence against her attacker.
But Downes, a painter and decorator from Wythenshawe, Manchester, pleaded guilty at the last minute.
It means Ms Kelly will not now have to give evidence in court.
Downes pleaded guilty to one charge of common assault by beating outside Salford Magistrates' Court on February 6.
Magistrates are considering whether or not to impose an Anti-Social Behaviour Order after hearing the defendant is a serial "egger".
The court heard Downes has previously egged Prime Minister Tony Blair's car and caused disruption by scaling public buildings dressed as Batman and Santa Claus.
John Perris, prosecuting, showed magistrates a police photo of Exhibit A showing two intact eggs, seized as evidence from the defendant after the attack.
Mr Perris said Ms Kelly was attending Salford Magistrates' Court in relation to a previous Fathers for Justice incident where one protester had tried to handcuff himself to her.
As she left the court Mr Downes appeared from a side street with his eggs.
"It was clear this was a pre-planned incident, he had gone along with the eggs for this purpose," Mr Perris said.
The defendant was bailed as magistrates adjourned sentencing until August 15 for reports. But he was warned he could face a custodial sentence.