Green’s Dictionary of Slang

weed n.2

[SE weed, a mourning garment, often a black hatband]

[mid-19C] a hatband.

SE in slang uses

In phrases

have a weed on (v.)

[1920s] to be in a bad temper.