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

256
Views
¿Cómo se puede abrir el diálogo en la extensión de Chrome?

Me gustaría crear una extensión de Chrome en la que pueda abrir un cuadro de diálogo al hacer clic en el ejemplo del icono. Intenté usar el script de contenido, pero solo funciona cuando abro una nueva pestaña

ejemplo

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

En su archivo manifest.json

 { "name": "Get a popup panel", "action": { "default_icon": "icon.png", "default_popup": "popup.html" }, "manifest_version": 3, "version": "0.1", "description": "Open my own popup panel", "permissions": ["storage", "activeTab", "scripting"], "background": { "service_worker": "background.js" }, "host_permissions": ["<all_urls>"] }

En tu archivo popup.html

 <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> </head> <body>My content here</body> </html>

Y en ti background.js

 chrome.runtime.onInstalled.addListener(function(){ // show here your welcome page });
about 4 years ago · Juan Pablo Isaza Report
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!