In a saucepan, combine the margarine, sugar, milk, cocoa, and a pinch of salt. Bring the mixture to a vigorous boil and allow it to bubble for exactly one minute.
Immediately after, stir in the peanut butter, oats, and vanilla extract until everything is well combined.
While the mixture is still warm, quickly spoon small portions onto waxed paper. Let them cool completely before serving.