Redditor bluechris11 suggests you take that grody-looking detergent cap and toss it in the washing machine with your clothes. Just dump in the detergent you need, then plop the cap in there. By the time your clothes are done spinning, the cap will be looking like new.

There are some things, however, to keep in mind when you do this. For one, this tip is best for folks with those newfangled front-loading washers that lock down once you start a cycle. If you have an older washer that allows you to open the lid while it’s being filled with water, you can just rinse the cap out in that. Also, this isn’t ideal when you’re doing loads of delicates or other easily damaged clothing. The plastic might get caught on something and tear it, or cut really soft fabrics. Lastly, be sure to shake out each item of your laundry when you move the load from the washer to the dryer. You don’t want that plastic to melt in the high heat cycle.