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

170
Visualizações
How to know if the active tab is correct for chrome extension (manifest 3)

I am a beginner in developing Chrome Extensions. I am currently working on an extension. Consider an extension, which only works on Instagram pages (.com, .in, ... and so on). Now there are two conditions:

  1. If it is an Instagram page, the popup.html says 'YES' and change some contents of DOM.
  2. If it is not an Instagram page, the popup.html says 'NO' and there is no change in DOM.
    {
        "name": "Extension",
        "description": "Description goes here",
        "version": "1.0",
        "manifest_version": 3,
        "permissions": ["tabs"],
        "content-scripts": { // DO SOMETHING HERE
        }
    }

I am using Manifest Version 3. Can I know the way I can check if the domain of the active tab is instagram, and if it is so, then where/how should I mention the source of the js file to be executed.

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