Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

164
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda