Blue mass , a pill or syrup in which mercury is the main ingredient , was prescribed throughout the 1800s for different conditions such as constipation , depression , child-bearing and toothaches . Blue mass , a pill or syrup in which mercury is the main ingredient , was prescribed throughout the 19th century for numerous conditions including constipation , depression , child-bearing and toothaches .