A ginger-haired right wing fanatic wanted to kill Princes Charles in the hope that flame haired Prince Harry would become king, a court heard.
Mark Colborne, 37, wanted to “put a bullet in Charles’ head” using a sniper rifle “for the Aryan people”.
Loner Colborne is accused of planning a cyanide attack on ethnic minorities because he felt “belittled” by being white and having ginger hair.
But he also discussed killing the heir to the throne in a notebook seized from his house, the Old Bailey heard.
In it, he wrote: “I don't want to be a serial killer. I'm more of an Anders Breivik (the Norwegian mass killer). I have left potential targets open.
"I was waiting for an opportunity to kill one of them. LET it be Prince Charles which would be good."
He added: "Take up a good position and put a bullet in Charles's head.
"He is protected but not too protected. I would sacrifice my life for that one shot. Kill Charles and William and Harry become king. Kill the tyrants."
In another note, he said: "The first chance I would get with a rifle if he crosses my path is to murder Prince Charles."
Colborne also ranted about the killers of black teenager Stephen Lawrence as they were sent to jail, prosecutor Annabel Darlow QC said.
In one entry dated 20 May 2012 he said: “I want to perform strategic coordinated different attacks on the systems tyrants and tyrants in and around the septic island.”
The following year he wrote about finding information about building “nerve gases which are as deadly as small-yield nukes”.
Colborne added: “'I'm stuck between committing mass destruction using a weapon of mass destruction and just targeting tyrants.
“I have often wanted to smear on toxin on their door handles that in time seeps through their skin and kills them but doing it to more than one neighbour would arouse suspicion.”
Colborne fantasised about transforming from a ginger-haired victim into a military terrorist, the court heard.
He wrote in his diary on 28 April 2013: "I want my legacy to say that I fought a one man war against the capitalist regime.
"I want them to see my transition from poor red-haired victimised minority that is constantly walked over to a fully transformed military terrorist striking at the hearts of the bigoted tyrannical rulers and of course the dark-haired, dark-eyes Caucasian race.
"I will be heard through terror."
The court had heard how Colborne, who suffered from depression and agoraphobia, trawled the Internet for explosives and poisons.
He went on to acquire chemicals over the Internet forming the essential ingredients for the deadly poison cyanide as well as stockpiling dust masks, metal filter funnels, plastic syringes and latex gloves, jurors were told.
But in June last year, his half brother Kevin Colborne alerted police after he uncovered the chemicals and papers detailing Colborne's racial hatred stashed amid the clutter of his room at the family home in Southampton in June last year.
The prosecutor said Colborne had a "troubled" childhood and saw himself as marginalised because he was a white, ginger-haired male.
Colborne denies preparing terrorist acts.
The trial continues.