Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

255
Views
Getting a string from page content with Chrome Manifest V3

I have small question with developing an Chrome extension.

How can I get a content of page and find a string after it has been loaded?

As a test i prepared something like this:

chrome.tabs.onUpdated.addListener( function (tabId, changeInfo, tab) {
  if (changeInfo.status == 'complete') 
  {
    if (document.body.innerHTML.indexof("text to find in HTML") !== -1) 
        {
            console.log("found");
        } 
  }

Manifest V3 shows that it is "server-side" scripting so i can't access to document and i don't know what to do now.

ReferenceError: document is not defined at <URL.>

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!