A MANIAC faces jail after admitting setting fire to a courthouse live on YouTube.
Fayth Davidson, 21, bought a petrol can minutes then streamed himself dousing a jacket with fuel before torching it at the entrance to the building in Kirkcaldy to a handful of viewers.
He was snared after cops uncovered CCTV footage of him buying the container from a nearby garage ahead of the late-night attack.
Davidson admitted wilful fire-raising during a hearing at the High Court in Edinburgh and giggled as the online clip was played.
Judge Lady Haldane heard the yob — who has a record for offences including vandalism and wasting police time — was interviewed by experts who say he “poses a serious risk to the public”.
She told him: “You have have accumulated some very serious convictions for such a young age.
Read more Scottish news
“Your previous convictions cause me concern.”
Davidson narrowly avoided setting himself alight when he set the blaze at Kirkcaldy Sheriff Court in February.
Firefighters spent more than two hours trying to dampen the flames with law chiefs forced to move legal hearings to another building.
Police discovered the weirdo had bought a petrol can at a nearby Esso garage shortly before the 5am drama.
Most read in The Scottish Sun
Fire crews later found the black container near the court.
CCTV footage obtained from the petrol station identified Davidson, who was already known to officers.
The bearded thug — who the court heard was born Joshua — paid for teh can using a Mastercard credit card.
Prosecutor Christopher Wilson KC revealed investigators soon discovered the incident had been streamed live online.
He said: “About 6.11am on the same date, Police Scotland received intelligence that the wilful fire raising to Kirkcaldy Sheriff Court had been live streamed on YouTube under the title ‘Spinning Trolly’.
“It was streamed by an account with the name on ‘FaythD’.”
The video was played to the court and Davidson — who observed proceedings by video link from HMP Perth — could be seen raising his hand to his mouth to stifle smiles and laughter.
In the clip, Davidson recites a long rambling monologue in which he stated: “This building is a work of art.”
He can then be seen removed a hi-vis jacket and placing it at the court’s entrance before pouring fuel over it then lighting it.
The court heard the building suffered damage to its front doors.
Lady Haldane deferred sentence until next month.