Sometimes I search for an old email in Gmail for the purpose of taking a screenshot, but I would like to remove the yellow highlighting that is added to every match of the search query:
Can I disable it and how?
The option to disable the highlighting ("Turn off highlighting") is located in the "More" menu (indicated with three vertical dots: "⋮") between the search box and the email title
With the most recent Gmail UI, the menu item has changed to an icon which you never would guess toggled highlighting until you actually hover over it to get the help text. It's in the top-right corner next to the printer icon.
document.querySelector('[title="Turn off highlighting"]');