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

140
Vistas
How to get website's logo and name by javascript

I am working on a browser WebExtension, one feature of my extension is to get the icon image and name of the website which user is browsing. I found some ways to get the icon, e.g

  1. https://<some domain>/favicon.ico
  2. link and metadata in header, such as <meta property="og:image" content="<some image link>" />, <link rel="apple-touch-icon" href="<some image link>".

As for the website name, I can use

  1. document.title
  2. metadata in header, such as <meta name="application-name" content="some name">
  3. the second level domain name

However, that is still not enough, I found the result is not satisfying on quite a lot websites.

I am wondering is there some list of those heuristics or routines to cover most of the cases.

Or is there any advice or better approach to get the site's logo/icon and name?

Thank you

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