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

183
Views
¿Cómo obtener la url de un sitio web con una extensión?

¿Cómo obtener la url de un sitio web con una extensión? estoy tratando de obtener la URL de un sitio web con una extensión y mostrarla

pero si trato de obtenerlo normalmente, regresa:

 chrome-extension://bilkbnaojbkfbinghcpobifhemelfope/index.html

cual es el archivo html de la extensión

¿Cómo haría que me diera el sitio web https real en el que estoy?

mi índice.html:

 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <h1 id="url"> url goes here </h1> <script src="script.js" ></script> </body> </html>

mi script.js:

 const urlEl = document.getElementById("url") window.setInterval(function doTheTing() { urlEl.innerText = document.URL }, 1000)

mi manifiesto.json:

{ "versión_manifiesto": 2,

 "name": "url thing", "version": "0.1.0", "description": "", "browser_action": { "default_popup": "index.html" }, "content_scripts": [{ "js": ["script.js"], "matches": ["https://*/*"] }], "permissions": ["activeTab"]

}

¡gracias por la ayuda!

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!