Adventures in Wonderland
Diary of a Mad Hatter
S1 E13:
The Mad Hatter finds his Great-Grandhatter's diary, which contains clues to a hidden treasure. The ensuing treasure hunt leads Wonderland's residents on a merry chase, but eventually the treasure is found and, to everyone's surprise, the treasure is a collection of -- what else? Hats!