A Muslim extremist who claimed that the 9/11 attacks were a blessing had a library of terror manuals including personal tutorials on Jihad with radical preacher Omar Bakri, the Old Bailey has heard.

Afsor Ali, 27, kept a stash of al-Qaeda documents, bomb-making plans and extremist lectures on his computer, selecting some to carry with him on his MP3 player, it was alleged.

Ali was said to be the spokesman of banned extremist group Muslims Against Crusades when he praised the suicide attacks on America. The radical Muslim warned of a terrorist attack on the wedding of the Duke and Duchess of Cambridge and called for a Burn American Flag Day in YouTube videos, the Old Bailey heard.

Ali was personally counselled by Bakri, the militant cleric dubbed the Tottenham Ayatollah, and recorded two of their conversations about Jihadi fighting and martyrdom.

Ali is on trial for having the al-Qaeda magazine Inspire and terrorist manual “39 Ways to Serve and Participate in Jihad” on his computers and MP3 player. Prosecutor Oliver Glasgow said he was a leader of Muslims Against Crusades and appeared in four YouTube videos under the alias Abu Assadullah promoting extremism.

Ali’s activities were investigated after he was arrested outside the US embassy on December 2, 2011, while leading a violent protest against drone strikes in Pakistan.

Ali of Scott Street, Bethnal Green, denies four counts of possessing documents containing information likely to be useful to a person committing or preparing an act of terrorism.

The trial continues.