Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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"]');
Required, but never shown