Quoted directly from the description, making this actually mostly a quote within a quote as the description is a quote:
Note: The process described in this video is “anointing,” described by Wikipedia thusly: When the animal encounters a new scent, it will lick and bite the source, then form a scented froth in its mouth and paste it on its spines with its tongue. The specific purpose of this ritual is unknown.
This behaviour isn’t just seen in hedgehogs, but also in deer, goats, dogs, brown bears and various primates. (Brown bears have an interesting one - they actually make a medical paste that doubles as a bug repellent!)
Hedgehogs in particular tend to do this with toxic substances, so one going theory is that they do this to make themselves poisonous. Assisting the theory is that hedgehogs have been known to kill toads, empty their poison glands and then rub the poison on themselves.
Hedgehogs also just eat toads. And snakes.
I used to own a hedgehog. I was allergic to his saliva and any time he pricked me it would get under my skin and cause welts. I can’t imagine how terrible that would have been if he had access to toad poison.
I can also vouch for them shitting while they run. It makes cleaning their wheels a real joy let me tell you.