I'd like to write a script to highlight any word in a google doc that is underlined. This is the closest thing I could find.
(Note - in the last line milk would be yellow, not grey.)
Example
I went to the store and bought m̲i̲l̲k̲ and eggs.
would change to this:
I went to the store and bought milk
and eggs.