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

370
Views
Use chrome.scripting.insertCSS to inject CSS at document_start with Manifest v3 for a Chrome extension?

It used to be possible on Manifest v2 with chrome.tabs.insertCSS to inject CSS with runAt: document_start in the details of the object when injecting from the background page

https://developer.chrome.com/docs/extensions/reference/tabs/#method-insertCSS

This appears to have been removed with Manifest v3's chrome.scripting.insertCSS and there doesn't seem to be a runAt option available anymore for CSS from a background page.

https://developer.chrome.com/docs/extensions/reference/scripting/#method-insertCSS

It now seems to default to document_idle

Is there another way of doing it? Putting the CSS file in the manifest file isn't really an option as it needs to create the CSS in the background page.

The new chrome.scripting API does let content scripts be injected at document_start but not CSS.

Thanks for any help with this.

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!