Appearing in The New Family Receipt Book (1815) are a wealth of household tips, including how to tackle smelly drains.
Here is a rendering of what the stink trap may have looked like, with some additional information:
An Encyclopædia of Cottage, Farm, and Villa Architecture and Furniture (1835)