Two school friends discussed a plan to blow up members of the British National Party, a court has heard.
Dabeer Hussain and Waris Ali, now both 18, researched bomb making techniques from “recipes” found on the internet, Leeds Crown Court was told.
The teenagers, from Dewsbury, West Yorkshire, are accused of possessing a terrorism manual called the Anarchists’ Cookbook, on their computers.
Both deny charges of possession of an article for a terrorist purpose.
The court heard the teenagers discussed a plan to spy on and blow up members of the far right political group.
Mr Ali was said to nurture a particular dislike of the BNP, the court heard.
The jury heard he bought “significant” amounts of potassium nitrate and calcium chloride on eBay and stored the chemicals under his bed and sofa.
From March this year he began to “buy chemicals in bulk”, the jury was told.
Both chemicals are innocuous in everyday use but can be used in the preparation of a bomb and are detailed in the Anarchists’ Cookbook.
Annabel Darlow, prosecuting, said the manual sets out how to make a variety of explosive devices, including pipe bombs and fertilizer bombs.
She said the plan was “no hoax or schoolboy prank” but a 3,000 page manual on how to prepare, commission and instigate acts of terrorism.
Mr Ali, of Dearnley Street, Ravensthorpe, Dewsbury, denies three counts of possession of an article for a terrorist purpose.
Mr Hussain, of Clarkson Street, Ravensthorpe, denies one count of possession of an article for a terrorist purpose.
The case continues.