DNA barcoding
DNA barcoding makes it much much faster and easier to tell what a species eats.  Before DNA barcoding, scientists had to follow an insect or other animal around and watch it eat.  This could take many years.  With DNA barcoding, scientists can look at what is in the animal's digestive system.  This is fast enough that scientists can watch animals' eating habits change with climate change.