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

303
Views
No se puede insertar/inyectar un botón en un elemento HTML usando Google Extensions

Por lo tanto, estoy tratando de insertar un botón en un sitio que no me pertenece usando Google Extensions.

Pude hacer que funcionara en el cuerpo, pero sin usar getelementid

Pero el botón no aparece donde se suponía que debía hacerlo.

¿Es porque está dentro de un iframe? ¿Qué puedo hacer para insertar un botón?

¡Gracias!

Esta imagen muestra el error https://i.stack.imgur.com/TvUfG.png

manifiesto.json

 { "manifest_version": 3, "name": "Button Injection", "version": "1.0", "description": "This extension injects a button into a web page.", "permissions": ["tabs"], "content_scripts": [ { "matches": ["https://*/*"], "js": ["script.js"], "run_at": "document_end" } ] }

guión.js

 let button = document.createElement("button"); let button2 = document.createElement("button"); button.innerHTML = "Click Me"; button2.innerHTML = "Click Me2"; document.body.appendChild(button); document.getElementById("gwt-debug-MainMessageView").appendChild(button2);
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!