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

177
Vistas
How to inject some dynamic elements into a webpage with a chrome extension?

I'm developing a chrome extension similar to Grammarly. I see that Grammarly is injecting its G button into the textbox of all the web pages. As in this pic: G button inside textbox in the bottom right corner

How do they do it? I tried to add a div using the content script but some pages still preventing it from displaying. Here is what I tried(testing purpose):

let div = document.createElement('div');
  div.innerHTML = "<strong>Hi there!</strong> You've read an important message.";

  document.body.append(div);

So, how does Grammarly achieve that functionality? How to do it with the react-shadow package? or any other workaround to do it in React? I used shadow-dom but it is blocking the entire dom. And displaying the latest element. Of course, I don't want that effect. How to exactly implement like Grammarly did?

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