How to highlight words on a webpage automatically

18 October 2026 · 4 min read

Quick answer

Chrome's Find bar (Ctrl+F) highlights one word or phrase at a time, and only until you close it. To highlight several words in colour every time a page loads, with a count of matches, add a small tool that marks them for you.

Why highlight automatically

Scanning a page for the same few words is a common chore. A job seeker looks for "remote" and "senior" in every listing. A buyer checks product pages for "refurbished" or "import". A researcher looks for a drug name, a person or a place across dozens of articles. Reading every word to spot three terms is slow, and it's easy to miss one in a long page.

The built-in way

Chrome's Find bar does part of this:

  1. Press Ctrl+F (Cmd+F on a Mac).
  2. Type a word. Chrome highlights every match and shows how many there are, such as 3 of 12.
  3. Press Enter to move between matches.

It has two limits for this job. It searches for one term at a time, so three words means three searches. And the highlighting disappears as soon as you close the Find bar or open another page, so you repeat it on every listing.

The manual way

You can make the Find bar go further:

  • Search for the most important term first, and only read pages where it appears.
  • Keep a short list of terms in a note and paste each one into the Find bar in turn.
  • Use the site's own search or filters, if it has them, to narrow the list before you read.

These save some time, and you still do the searching on every page.

Make it permanent with a tool

A userscript can do the searching each time the page loads. It's a short piece of JavaScript that runs on a website you choose. A highlighting userscript walks through the text on the page, wraps every match of your terms in a coloured highlight, and puts a small counter at the top of the page saying how many matches it found. The next listing you open is highlighted the same way, without you doing anything.

ScriptPanda is a Chrome extension that builds tools like this from a plain description. Open its side panel on a page where you want the highlights, paste the request at the end of this guide, and change the three words to your own. It writes the tool and installs it on that site.

Highlighting is plain text matching, so it doesn't use AI once it's built, and it doesn't use your plan's requests when it runs. Building it and changing the words later do.

Follow-ups worth asking for:

  • Different colours per word, so "remote" is green and "unpaid" is red.
  • Whole words only, so "senior" doesn't match "seniority" if you don't want it to.
  • Jump buttons next to the counter, to scroll to each match in turn.
  • A box to edit the words on the page itself, so you can change them without asking ScriptPanda.

Highlighting meaning, not just words

Plain highlighting finds exact words. If you want something closer to meaning, such as "anything that suggests the job is part-time", that's a job for AI, and the related guide on summarizing pages shows how AI tools work in ScriptPanda: you approve them before their first run, and each run uses requests.

Limits

The tool highlights text on the site it was built for, in Chrome on your computer. It sees the text that's on the page, so words inside images, inside PDFs opened in the browser, or in content that hasn't loaded yet aren't matched until they appear. Pages that load more content as you scroll need the tool to keep watching, which is worth mentioning in your request. If the site changes and highlights stop appearing, open ScriptPanda on the page and ask it to fix the tool.

Do it with ScriptPanda

Build it in one request

Highlight every mention of "remote", "contract" and "senior" on this page in yellow, and show how many matches there are at the top of the page.

  1. 1Add ScriptPanda to Chrome.
  2. 2Open the side panel on the site you want to change.
  3. 3Paste the request and send it. ScriptPanda builds the tool into the page.
Add ScriptPanda to Chrome

Related guides