Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

380
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda